spescina / imgproxy

Image proxy for Laravel based on Timthumb. It's intended to be a replacement of spescina/timthumb
19 stars 2 forks source link

Doesn't generate resized image #5

Closed dud3 closed 10 years ago

dud3 commented 10 years ago

File/Folder: $img = avatars/avatar_xy/xa9DAfeX.png

For some reason after I give the img. path to the method: ImgProxy::link($img, 200, 200) I get the URL, but there's no resized picture on the public folder ?

Generated URL: http://localhost:8000/packages/spescina/imgproxy/200/200/1/90/avatars/avatar_xy/xa9DAfeX.png

What could be the problem ?

spescina commented 10 years ago

Generated images are stored in the app/storage/cache/imgproxy folder. I don't understand if your problem is that the generated url does not load the image or if you don't find the image file in the public folder.

dud3 commented 10 years ago

Can't find the image on public folder.

spescina commented 10 years ago

as stated before, there's no image in the public folder... temp images are stored in the app/storage/cache/imgproxy folder but the app will show the cached image if you call the generated url. google for timthumb for understanding it's behaviour.

dud3 commented 10 years ago

For some reason there's no folder called /imgproxy on app/storage/cache/, and I'm pretty sure that folder has +rwx permission set.

spescina commented 10 years ago

do you see the image when opening the generated url in the browser?

dud3 commented 10 years ago

I was jut trying it over and over again but unfortunately not.

dud3 commented 10 years ago

Actually on the remote server I get the URL like: http://dev2.mymxlog.com/packages/spescina/imgproxy/100/100/1/90/home/ubuntu/dev2.mymxlog.com/public/avatars/demo@gmail.com/TRchD9R2.png

But it's like there's an empty/default picture in it(check the link above) ?

dud3 commented 10 years ago

And BTW on the remote server there's the /imgproxy folder also.

spescina commented 10 years ago

there's something weird. I don't understand why you have this url... the correct url is this http://dev2.mymxlog.com/packages/spescina/imgproxy/100/100/1/90/avatars/demo@gmail.com/TRchD9R2.png and in fact it works. try to figure out why there's the full system path in the url

dud3 commented 10 years ago

Alright that solved it, the whole problem was on full system path, it seems that I was giving it the full system path. Everything works fine.

Thanks a lot.

You might close this issue.

spescina commented 10 years ago

ok