- Posts: 33
- Thank you received: 1
Kunena 220.127.116.11 Released - Security Release (09 Nov 2018)
The Kunena team has announce the arrival of Kunena 5.1.6 [K 5.1.6] which is now available for download as a native Joomla extension for J! 3.9.x. This version addresses most of the issues that were discovered in K 5.1 and issues discovered during the development stages of K 5.1. This is a Security release.
K18.104.22.168 is a install update.
Question Corrupt/Grey(Gray) images
that was the ultimate hint. My only problem was that I have no access to the php.ini on the webserver.
However, creating my own with exactly the above and placed it into the directory of the webinstallation. This changed the setting in the phpinfo from 1 to 0 and now it works with php 7.1.16 (with 7.0.20 it worked before also, with 5.6 anyway).
Many Thanks for your efforts
So I put the following code into the index.php (in the Joomla base directory) ahead of $app->execute():
I've tried everything - changing from php 5 to 7
Adding the ini_set(‘gd.jpeg_ignore_warning’, 0); to index.php in joomla base directory
Changing it directly in php.ini for both php 5 and 7.
But nothing seems to work.
It happens both when using iPhone (ios 10-11) and Samsung phones.
There is a link to an example here: mustangklubben.dk/fora/opslagstavlen-lin...sportsroof?start=180
If i first upload the image to facebook and download it to my local - and then uploading it to Mustangklubben.dk -> Its NOT corrupted.
I assume its something to do with the image Exif-data (And facebook in some way strips it?!)
Do anyone have a solution for this?
- If i change the image file from .jpg (default iPhone for regular images) to .png and then upload it, it uploads without being corrupted.
It took some investigation and finally I made a changed in the file ../libraries/kunena/upload/upload.php.
The part // Get filename from stream and the belonging code on lines350 (about) I places outside the while loop. now it works fine!
Result image after rework upload file:
I see on your forum the problem does not appear.
I see a change in the size of the file image_2017-10-22-5.jpeg ( 223757 bytes) and the file image_2017-11-01-5.jpeg (225749 bytes).
The size of the orignal file is 1695914 bytes.
Testing has been done on a local PC.
After clicking attachments add files and selecting the file a copy is put in the folder c:/xampp/tmp. The file is reduced in size but still correct.
In the while loop the image is uploaded to .. /tmp/uploads in pieces of 8192 (?) bytes. When I remember well, after the third loop the first part of the result file changes. This happens in the imagerotate module.
I also addes a ZIP file with the original images.
- Not Allowed: to create new topic.
- Not Allowed: to reply.
- Not Allowed: to add attachements.
- Not Allowed: to edit your message.