writeImage adding vertical lines on some jpg converts

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
bobcahill
Posts: 2
Joined: 2011-06-28T10:32:53-07:00
Authentication code: 8675308

writeImage adding vertical lines on some jpg converts

Post 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
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: writeImage adding vertical lines on some jpg converts

Post 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.
bobcahill
Posts: 2
Joined: 2011-06-28T10:32:53-07:00
Authentication code: 8675308

Re: writeImage adding vertical lines on some jpg converts

Post 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.
Post Reply