milesj / uploader

[Deprecated] A CakePHP plugin for file uploading and validating.
MIT License
193 stars 73 forks source link

JPEG Images Will Not Upload on Default Heroku Cedar Instance #137

Closed robksawyer closed 11 years ago

robksawyer commented 11 years ago

I'm able to upload PNG imgaes, but for some reason, when JPGs are uploaded, I get the white screen of death. Any ideas?

milesj commented 11 years ago

What do logs say?

robksawyer commented 11 years ago

All I'm getting is:

Aug 22 11:59:21 curdcollective-staging app/web.1:  10.42.122.176 - - [22/Aug/2013:18:59:19 +0000] "POST /cheese_producers/edit/401 HTTP/1.1" 200 - 

It probably has something to do with a method not existing on Heroku's default PHP install that should exist in order to process images.

milesj commented 11 years ago

Hrmm, GD module enabled?

Do simple JPG uploads work (no transforms)?

robksawyer commented 11 years ago

No more blank screen of death when removing transforms. However, the image doesn't upload and the previously uploaded image stays the same.

It seems that others have had this problem as well (http://stackoverflow.com/questions/8627701/lack-of-heroku-php-gd-setup-for-jpeg-files-causing-issues). It's because GD isn't included in the default build. Note: I'm currently using a precompiled version of imagemagick in order to process any image. I guess I'm just going to have to use a build pack after all.

milesj commented 11 years ago

Yeah, pretty much any image manipulation or touching functionality requires GD. Not having GD enabled by Heroku seems odd, since I think it's enabled by default.

milesj commented 11 years ago

Was GD the problem?

robksawyer commented 11 years ago

Yep. It's working great now. Thanks again for the help.

On Aug 26, 2013, at 7:35 PM, Miles Johnson notifications@github.com wrote:

Was GD the problem?

— Reply to this email directly or view it on GitHub.