Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 21. Nov 2024, 18:29

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 15. Mar 2020, 15:10 
Offline

Joined: 15. Mar 2020, 14:38
Posts: 1
Hi,

Running the TWG 2.4.6 on PHP7.0.33 on Ubuntu.

I found that images were not rotating according to the Image->Enable Autorotate. I traced it to in exifReader.inc.php.. approx.line 550. switch($Tag). I suspect it is because all the tag defines in the start of the file are in hexadecimal format string and this no longer works ...

PHP RFC: Remove hex support in numeric strings
https://wiki.php.net/rfc/remove_hex_support_in_numeric_strings

"Note: From PHP 7.0: The is_numeric() function will return FALSE for numeric strings in hexadecimal form (e.g. 0xf4c3b00c), as they are no longer considered as numeric strings."
https://www.w3schools.com/php/php_numbers.asp

I think the defines in the start of the file need to be changed to hex numbers, not hex strings, or the value in three switch statements (approx lines 380,555 and 1330) need to be converted to a hex string.

Thanks for the great software.


Top
 Profile  
 
PostPosted: 15. Mar 2020, 20:23 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Do you have a fix already which works for you? Or an example image for me?

What do you mean with "start of the file". The image?

Best, Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy