Page 1 of 1
writeImage adding vertical lines on some jpg converts
Posted: 2011-06-28T10:43:38-07:00
by bobcahill
I have an image upload that converts the uploaded image to a thumbnail and a compressed image of a set maximum width and height. Everything works fine except when I upload jpg files that are 2592x3888 @ 240 dpi. Examples of the problem are at
http://www.cahillscritters.com/friends- ... curImage=1 and
http://www.cahillscritters.com/friends- ... curImage=0 . If I convert the original jpg in photoshop to 72 dpi it works just fine, but my client will not be able to convert in psd.
Thanks
Re: writeImage adding vertical lines on some jpg converts
Posted: 2011-06-28T12:43:50-07:00
by Bonzo
Thats a strange effect and a strange original dpi. Can you use php to test upload one of the files without using Imagick to see what happens?
Something like:
Code: Select all
<?php
exec("convert input.jpg -resize 333x500 output.jpg");
?>
On a side note I would do something about your folder names as Loki%20and%20Bentley is not very good in a URL.
Re: writeImage adding vertical lines on some jpg converts
Posted: 2011-07-01T09:17:18-07:00
by bobcahill
I have set up an action in Photoshop so the client can temporarily convert to 72 dpi and resave over the original, but it will not be a permanent solution. I will try to use a different PHP image manipulation technique on those same images and see if there is a problem. Thanks for the space in url issue. I forgot about that and have fixed it.