By gh2012 on
When I upload images following this video:
http://www.youtube.com/watch?v=l0I5f9YmmI0
I do not get a preview image. Everything else works. The GD library reports that it is working. After messing around for several hours, I've discovered that images are not being resized at all.
I've tried uploading the sample.png image as an example and it doesn't show a preview image either.
Comments
Have you checked the php
Have you checked the php memory limit at admin/reports/status ?
I have mine set at 128M and some high-resolution files will not process. I have found that reducing the size of images works. Maybe try uploading a really small image to see if that works?
I have small images but...
Thanks for your response. The images I'm using are 40K. I looked at the status reports and didn't see anything but I did not know specifically what to look for. I will try looking there unless ...
... I think the image_resize_filter module may be required. I am just about to try that.
Unfortunately, I destroyed the instance I was using. I have a develop/preview/live
set of sites and the preview one is still ok, so I can retore from that one
When you look at the status
When you look at the status report, there is a line which gives says "php memory limit"
memory limit
I just added image_resize_filter, created a new content type, and
uploaded a couple more images.
Nothing. No out of memory limit. I looked at the setting yesterday and it's 128MB. It
should not need to be larger for the 40KB images I'm uploading.
The GD library is not even being called, I think.
find SITE/sites/default/filesshows only the images I have uploaded. It will show sample.png if I go fiddle with
the image configuration. That didn't work before but perhaps it will work now.
Since there is a youtube video of this feature working, I think it should work as long as the correct modules are available and the proper incantations are performed. I just have not yet been able to figure out what magic is required.
I have not watched all of
I have not watched all of that video but the first part is using an image field and you don't need extra modules for that. Are you uploading via an image field in a content-type or in a WYSIWYG editor using image resize filter?
Content type
In a content type. I'm starting to mess around with other things though.
I've changed the value of gd.jpeg_ignore_warning to 1 from 0 in the php.ini but that didn't change anything.
modules used
He's definitely using the token module. He's also using drupal 7.0 (got this off the screen of
one of his other videos).
So I installed 7.0 but not token and followed his video exactly, including the token he used (I thought token might just display the tokens) and it used the token literally without expanding it.
So, I'll try the same thing with the token module installed ...
... fixes token problem but not image one.
I forced it to resize the sample.png so the gd system is working. I think it's just not
being called for some reason. Maybe the demo is on a different platform. I'm using debian.
nginx ?
I searched yahoo for: drupal 7 styles
and noticed some nginx links coming up (also .htaccess, which nginx does not use).
This has a fix:
http://robmalon.com/drupal-7-nginx-conf-fix-for-missing-images-styles/
referencing:
http://groups.drupal.org/node/124514
The fix does not seem correct to me. Debian has the same thing for drupal6 using imagecache and I already know that part of my configuration is incorrect. However, perhaps the problem is that the request for the file must be seen before drupal will go ahead and generate the image from the uploaded one. So I will try the fix he suggests.
IT WORKS !!!!
Thanks Patroclas
Thanks for your help ... even if the problem was my own stupidity.
Thank you!
I had no idea to fix this problem, thanks for sharing the solution! As you said IT WORKS! @gh2012