---- Drupal7, Images driving me nuts (teaser and image styles)
explorador - 3:49 pm on Jun 11, 2012 (gmt 0)
Thanks Ergo. It helps to know that I'm not alone and that it is not an easy problem to solve. Painful! to import 500 items like that!
I checked the theme and tried others, the extra image styles still are there. I configured everything to STOP using thumbnails but it happens anyway (but not 5 of 5) it just... "sometimes", doesn't make sense to me. Storage is not still the problem, but managing several copies of the same (unnecesary) is not what I look forward into, specially due to seldom migrations (it isn't one of my sites, it belongs to the company I work for so there are often silly decitions being made).
>>The files are there but they just don't show.
You have them in the file_managed and the file_usage tables and you also have a field_data_#*$!xx and field_revision_#*$!xx for the image field and have those all linked to the node? That's pretty complicated to get right.
YEP. I finally got it right, then "sometimes" the right images are called but they don't show.... still... they appear on 0,0 (width and height)
Do you have the dims set in field_data_#*$!xx and field_revision_#*$!xx ?
Yep, no luck...
As a general observation, you might need to do something like create a "field collection" where you upload the thumbnail and the main image separately and link them together at the theme level.
Thanks, I will try that.
On the other side I'm trying something, perhaps this could be useful for you... Yep, I'm still working on it... 1. I removed the "image" from the content style. 2. Added "upload file" with jpg allowed 3. Added FULL HTML long text field 4. Added custom JS include to enable my custom NICEDIT as editor... that's working fine already.
Well, I will add some JS functionality SO, when I upload an image file, the JS (via interval) will set the longtextfield to IMG SRC value of the file, along with the html text <img src=etc... AND CSS style "class='xx'". This is working already (JS pending).
So I modified the display for full and teaser, it works. The image is never resamples because it is treated as a non image. The interval will also fix the "null value" if no image is uploaded or if the current image is deleted. Yep, it is working BUT I'm yet to experiment further with teasers and VIEWS (because this site will require custom views to construct the front page....
I'm totally AGAINST modifying the modules because every update will break the system but I managed to construct everything around a js include... the JS builds everything else on the page.