EllisLab text mark
Advanced Search
     
1.5.4 - jpg upload no longer working
Posted: 13 July 2007 06:13 PM   [ Ignore ]
Avatar
Joined: 2007-02-14
64 posts

I have a test CI application on my Windows development machine that utilizes the code from the CI user guide to perform image uploads.  The script runs fine in 1.5.3, but no longer uploads a valid image in 1.5.4.  The uploaded image appears to be the proper filesize, but is not viewable in Windows and is not considered a valid image when using the CI Image Resize functions.

When I copy the original 1.5.3 Upload.php file into 1.5.4 it works fine.

 
Posted: 15 July 2007 11:29 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2006-03-23
3194 posts

Darn.

Is this true of all jpgs, or just that 1, and if just that 1, could you attach it here so I can test it (if the forums will let you).  If the forums won’t let you, just email it to me (derek at derekallard dot com).

Thanks.

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design

 
Posted: 15 July 2007 01:04 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2007-02-14
64 posts

The error occurs on all jpg’s that I tried using the upload code from the user guide.  It works fine if I drop in the old Upload.php from 1.5.3.  I confirmed that the same thing happens on Linux (CentOS 4).

As an aside, I also noticed that all thumbnails created by the CI Image Manipulation library are assigned 777 permissions even if the original image is 644.  Not sure if this is an OS issue or CI.

Thank you for looking into this.

 
Posted: 18 September 2007 03:38 PM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2007-02-14
64 posts

Does anyone know if this issue will be resolved in the next CI release?

 
Posted: 18 September 2007 03:44 PM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Avatar
Joined: 2007-05-30
46 posts

I’m using 1.5.4 upload class to upload jpg’s with no problem, i’ve run some similar issues using xmlrpc class to transfer binary data, but this is a different history i think

 Signature 

Alex Sancho
Personal Weblog
Web Studio

 
Posted: 18 September 2007 06:01 PM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Joined: 2006-07-14
4237 posts

i don’t have any problems on windows and linux, but i don’t use resize.

 
Posted: 19 September 2007 09:39 AM   [ Ignore ]   [ # 6 ]   [ Rating: 0 ]
Avatar
Joined: 2006-08-11
103 posts

I remember I had a similar issue once with only one site.

It turned out that the problem was the images provided by my client where not in RGB format but in CMYK.

I solved the issue by running a simple batch in photoshop to switch every image to RGB.

After that, CI resizing worked fine

 Signature 

Security Code Review