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
writeImage adding vertical lines on some jpg converts
Re: writeImage adding vertical lines on some jpg converts
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:
On a side note I would do something about your folder names as Loki%20and%20Bentley is not very good in a URL.
Something like:
Code: Select all
<?php
exec("convert input.jpg -resize 333x500 output.jpg");
?>
Re: writeImage adding vertical lines on some jpg converts
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.