Git Product home page Git Product logo

Comments (4)

dapphp avatar dapphp commented on May 31, 2024

Can you post the code showing where/how you set it to 0.7? I tried modifying the property directly in securimage.php and in securimage_show.php and it seems to work.

Also, what version of PHP did you experience this in?

from securimage.

cosecantt avatar cosecantt commented on May 31, 2024

Sure.
in securimage_show.php file I added following properties:
$img->image_height = 40;
$img->image_width = $img->image_height * 4;
$img->font_ratio = 0.7;

height and width worked but not ratio;

from securimage.

dapphp avatar dapphp commented on May 31, 2024

When I pasted that code into securimage_show.php I got a result that looked like this which appears correct. If I remove the font_ratio line the text is much smaller. Your result was different?

It shouldn't matter, but can you try using the latest securimage.php from master? It's different from what you have but it should just be changes to comments, not actually any difference in code.

from securimage.

cosecantt avatar cosecantt commented on May 31, 2024

That is totally wierd. Now it works. Before that I tested couple of times and did not work until I changed above line of codes. Now again I used default it works. I do not know why.

PHP version 5.3.26
Secure image version 3.5.2 (Feb 15, 2014);

from securimage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.