Jump to content

Uploaded Image not resizing


Entice
 Share

Recommended Posts

Hi.

I've been trying to tackle this problem all day. I have my image upload script working well. On computers, I can upload just fine and have the images resized.

But when I try to upload from my phone using the camera, I see the file get uploaded to the server, but then when it comes to the resizing portion, it completely fails. No errors to trace. At first I thought it was iPhone related, but reproduced it on my Android phone.  It seems to happen with camera taken images (even DSLR). I can create a photoshop image that is a larger image size, and that works.

I'm able to call the image itself it and it displays the original image data, the original file is on the server, the code is pretty basic.

I first try getting the URL of the first (and only) image:

Start
$user->avatar->first->url
End

Result:

Start
/site/assets/files/1525/profile.jpeg
End

BUT when I do this:

Start
$user->avatar->first->size(100,100)->url
End

I send up with:

Start

It simply dies with no error to trace back. Even when I have debug turned on, nothing.

For the life of me, I can't seem to pinpoint the issue. Has anyone else come across this?

Link to comment
Share on other sites

 Share

×
×
  • Create New...