We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Problem with uploading .PNG images via newsfeed status attachment[Solved] | Forum

Peter
Peter Dec 8 '14
Hello, after update to 1.7.2, I can't upload the .PNG images as an newsfeed attachment. .JPG images works fine. What ist the problem?


Thank you
The Forum post is edited by ross Dec 14 '14
Robert Rodrigues
Robert Rodrigues Dec 8 '14
Having the same issue here.
ross Team
ross Dec 8 '14
This already been reported. Please do the search before posting. The issue will be fixed asap. 
ross Team
ross Dec 10 '14
Here's the fix:
in ow_libraries/wideimage/Mapper/PNG.php
find these lines:
function save($handle, $uri = null, $compression = 9, $filters = PNG_ALL_FILTERS)
        {
            return imagepng($handle, $uri, $compression, $filters);

and replace them with these:
function save($handle, $uri = null, $compression = 9, $filters = PNG_ALL_FILTERS)
     {
  if ( $compression > 9 )
   {
        $compression *= 9 / 100;
    }
         return imagepng($handle, $uri, $compression, $filters);
Peter
Peter Dec 10 '14
This solved the problem. thank you!
Marcel
Marcel Dec 13 '14
Thx
ross Team
ross Dec 14 '14
Great. I'm going to mark this thread as Solved