I scaled it back. Maybe it is not a size issue per se. but a height width scale problem
the 755 should be sufficient since now I see the thumbnail being created.
maybe 1920 x 2560 is just too large
try converting your original test image to a png file for grins and scale it back but the size should increase. Scale it to 1200 x 1999 . So the scale will be different and the size will be large because it is a .png.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I uploaded an image that has a file size larger than your original image which wouldn't create a thumbnail , but has a smaller scaling and is a png extension. So, it is not file size.
perhaps you need to change the scaling on jpg file or convert to a png file.
try converting your original image to a png and dont change scaling and see if it has an effect.
or even load your original jpg image in a sile editor and scale it back to 99% and save it as a jpg.
these might give you some insights.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
"thumbnail creation on file uploads fails on some jpg files of a certain size and dimensions."
I've been trying to help avantime4mike (he has php 5.4)
has anybody run across a FAILURE with thumbnail creation with the function below....
this failing
Gdn_UploadImage::SaveImageAs($Path, $TargetPath, $Height, $Width, $Options);
on jpg files that are close 1mb in size. or jpg with dimensions of 1920 x 2500
on my localhost
I've uploaded the same jpg on my machine localhost no problem. I run php 5.3
on his host
Failure:
both mike and I and others seem to have a failure on thumbnail creation on 1mb jpg files on host. particularly greater than 1600 x 1600 height - width images.
when an attempt to upload a file of these dimensions. The usual thing that happen is the the full file uploads properly to uploads/FileUpload but the thumbnail img src link points to
/utility/thumbnail/FileUpload/
instead of
/uploads/thumbnails/FileUpload/
if the jpg file is small it properly goes into a sub-folder in uploads/thumbnails/FileUpload and the img src link correctly point to thumbnail.
this indicates the file permissions are correct
A few things - he is running php 5.4
I've noticed a few mentions of some gd library with php 5.4 that may not work, and also I've seen mention of low memory may cause issues.
I don't know what his memory settings are.
Has anybody have file uploads of large jpgs with 5.4 or experienced this problem and solved it?
I suggested he try php 5.3 if it is available on his server. Any ideas.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
This is now solved, the main problem was an incompatibility with php 5.4 (now running ver 5.2) also increased memory allocation to 192Mb.
A big thank you to peregrine for his determination in solving this. The moral of this story is to try a combination of possible solutions if one at a time they don't work.
The problem has returned without warning. Still running PHP ver5.2 but larger files do not create a thumbnail view. In IE or chrome there is a small box with an X in it which when clicked displays the full image. In Firefox nothing at all displays.
Comments
Screenshot:-
here is a screenshot of two images - from your site. if anyone else has ideas.
first screenshot in firefox has
small image
2nd attachment with broken image is not displayed in firefox.
in the firebug details - you can see the broken image is grayed out and image source is pointing to utility.
second screenshot - in chrome
small image
2nd attachment with broken image that is displayed in at lower right to right of clock face.
I can replicate your issue if I remove write permissions on uploads/thumbnails/FileUpload on my home machine that is why I thought it was the problem.
Are the permissions writeable and correct on this directory as well
/forum/uploads/thumbnails/FileUpload
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@avantime4mike
Are the permissions writeable and correct on this directory as well
/forum/uploads/thumbnails/FileUpload
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Was set to 705 now 755 made no difference
can you change it to 777 briefly just for an experiment and test it.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
It looks like you uploaded the test image ok but it won't work for me with permissions set at 777 on all three relevant folders.
Changed them back to 755 as I have to go out for an hour.
I scaled it back. Maybe it is not a size issue per se. but a height width scale problem
the 755 should be sufficient since now I see the thumbnail being created.
maybe 1920 x 2560 is just too large
try converting your original test image to a png file for grins and scale it back but the size should increase. Scale it to 1200 x 1999 . So the scale will be different and the size will be large because it is a .png.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I uploaded an image that has a file size larger than your original image which wouldn't create a thumbnail , but has a smaller scaling and is a png extension. So, it is not file size.
perhaps you need to change the scaling on jpg file or convert to a png file.
try converting your original image to a png and dont change scaling and see if it has an effect.
or even load your original jpg image in a sile editor and scale it back to 99% and save it as a jpg.
these might give you some insights.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
OK thanks @peregrine I'll have a play over the next few days. Your efforts are much appreciated.
@underdog or @whu606 can you change title of this thread to
"thumbnail creation on file uploads fails on some jpg files of a certain size and dimensions."
I've been trying to help avantime4mike (he has php 5.4)
on my localhost
I've uploaded the same jpg on my machine localhost no problem. I run php 5.3
on his host
Failure:
both mike and I and others seem to have a failure on thumbnail creation on 1mb jpg files on host. particularly greater than 1600 x 1600 height - width images.
when an attempt to upload a file of these dimensions. The usual thing that happen is the the full file uploads properly to uploads/FileUpload but the thumbnail img src link points to
/utility/thumbnail/FileUpload/
instead of
/uploads/thumbnails/FileUpload/
if the jpg file is small it properly goes into a sub-folder in uploads/thumbnails/FileUpload and the img src link correctly point to thumbnail.
A few things - he is running php 5.4
I've noticed a few mentions of some gd library with php 5.4 that may not work, and also I've seen mention of low memory may cause issues.
I don't know what his memory settings are.
Has anybody have file uploads of large jpgs with 5.4 or experienced this problem and solved it?
I suggested he try php 5.3 if it is available on his server. Any ideas.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@underdog - title change please.
@underdog or @whu606 can you change title of this thread to
"thumbnail creation on file uploads fails on some jpg files of a certain size and dimensions."
see previous message.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Ooh, ooh, I did it, I did it!
php ver 5.4 is the only sub version of ver 5 made available by my host
Anyone else using php5.4 having this problem?
upload the image you are having problems with here.
then if somebody uploads it as a favor to you to test on their forum. Then if it works.
they could tell you the
php version they are using
the vanilla version they are using
the plugin version they are using
and they could tell you what it says for
memory_limit
in their phpinfo.
maybe @r_j could run a test for you.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Here's the problem image:-
Thanks in advance to anyone prepared to help.
This is now solved, the main problem was an incompatibility with php 5.4 (now running ver 5.2) also increased memory allocation to 192Mb.
A big thank you to peregrine for his determination in solving this. The moral of this story is to try a combination of possible solutions if one at a time they don't work.
The problem has returned without warning. Still running PHP ver5.2 but larger files do not create a thumbnail view. In IE or chrome there is a small box with an X in it which when clicked displays the full image. In Firefox nothing at all displays.
http://avantime-owners.com/forum/discussion/2049#Item_1
The Thumbnails are not being created correctly although the image does upload. Any ideas please?
There are two images with the first post in the above linked discussion.