Comments (4)
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.
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.
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.
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)
- Typo in PDO::purgeOldCodesFromDatabase() in master HOT 2
- Difference in captcha image reload functionally in the two branches HOT 1
- When using case sensitive captcha, the audio version just says the letter and not capital or lowercase letter
- Composer install post cmd error HOT 7
- [Bug reporting] multiple XSS in securimage
- secureimage.php – curley braces are deprecated HOT 1
- Redis setTimeout is deprecated consider changing to expire HOT 1
- php8 float conversion HOT 1
- Compatibility with PHP 8.2 HOT 1
- www.phpcaptcha.org domain for sale HOT 2
- dynamic property Securimage.... is deprecated in php 8.2 HOT 1
- New release? HOT 1
- Deprecated with php v8.2 HOT 1
- can't install via composer HOT 2
- captcha Audio with Captcha IDs
- Erreur: Undefined class constant 'SI_DRIVER_SQLITE3' in StorageAdapter/PDO.php file HOT 1
- Illegal string offset 'code' in securimage.php:1403 HOT 3
- Curly brace syntax
- Composer version HOT 3
- Project status HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from securimage.