I found the solution in the “file” thread!
this is essential if you want to use file 3.1.1 extension from marc huot:
round line #1030 under the heading “Write File”
Change from:
if(@imagegif($dst_img, $dst) !== false) {}
else if(@imagejpeg($dst_img, $dst) !== false) {}
else if(@imagepng($dst_img, $dst) !== false) {}
Change to: if
(@imagejpeg($dst_img, $dst) !== false) {}
else if(@imagegif($dst_img, $dst) !== false) {}
else if(@imagepng($dst_img, $dst) !== false) {}
This will take care of your problem and save your jpeg as a true jpeg. The default image size is set to 60% quality (this is medium in Photoshop)… if you want it set to a higher quality add the number below. (90 means 90% image quality)
if(@imagejpeg($dst_img, $dst, 90) !== false) {}
this is the original thread: http://ellislab.com/forums/viewthread/38997/P360/#335581
thanks for helping out! my feeling was right. it created “.gif”s and just added “.jpg”… but then I would have NEVER EVER found a solution 😉 excellent forum. I love it!
cheers stefan
Ah- the extension was the culprit. Note- this shouldn’t affect files uploaded/resized via the stock install, so I’m going to shift the thread to the extensions forum and leave it open- just in case someone else runs into the same problem.
yes, seems like a good idea. I really wasn’t shure where to begin! thanks for your patience
stefan
Super helpful thanks so much. I was about to switch to phpthumb when i came across this post. I assumed it was an EE issue not the extension. For anyone else reading this who may not be php savy in the example code to replace
(@imagejpeg($dst_img, $dst) !== false) {}
you still need an if at the start of that line. Like this..
if(@imagejpeg($dst_img, $dst) !== false) {}
Just in case you missed it.
I was about to switch to phpthumb when i came across this post.
I use both. I gave up on relying on it to resize for me. So I set it up so images are uploaded as is and I setup phpThumb withing my images folder with its own .htaccess so I can write my images nicely like this:
/images/thumbs/f=jpeg;q=75;100x200;{image}
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.