Hello,
I integrated imagecache with image. When imagecache integration is enabled, instead of creating image derivatives from the WidthxHeight values entered on the admin/settings/image form, each derivative is not mapped to an imagecache's preset.
This enables to map "thumbnail" derivative be mapped to a "scale_outside_then_crop" imagecache preset that produces perfect square thumbnails :)
When imagecache integration is enabled, new derivatives are no more created on the disk (note that derivatives created previous enabling integration are not removed). Instead, derivatives are generated on the fly thanks to imagecache.
At the moment, the only quirk I experienced is with image_gallery: in fact image_gallery module uses the Width & Height values from admin/settings/image to layout the thumbnails (see screenshot for details).
Hope this helps.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | image-imagecache_integration-145071.patch | 10.36 KB | guardian |
| #1 | image-imagecache_integration-145071#0.patch | 10.36 KB | guardian |
| image_imagecache_integration_and_image_gallery.jpg | 123.76 KB | guardian |
Comments
Comment #1
guardian commentedhere is the patch
Comment #2
guardian commentedfixed patch name so that it's downloadable
Comment #3
guardian commentedplease read "each derivative is NOW mapped to an imagecache's preset."
Comment #4
ray007 commentedsubscribing.
imagecache integration sounds like a good idea to me ;-)
Comment #5
dharamgollapudi commentedI have seen several follows ups that say subscribing. How can I subscribe, I don't see any link under my name in the right side bar. Or is it that by creating a follow up you are managing to see this post under My recent posts section?
But it would very good to have subscribe feature for the posts.
Comment #6
drewish commentedSatynos, there's a link at the top of each issue queue that lets you subscribe to it. Posting a comment to an issue will add it to your "own issues".
Comment #7
dharamgollapudi commenteddrewish:
Sorry for posting again. But the subscribe link lets me subscribe to all the issues for a particular module, not one issue that I want to track even if I am not particiapated. Also is there any way to delete my postings (#5 and #7) that are not related to the issue per say. If you could, please delete these postings as they are not really relevant to this issue.
Thanks in advance.
Comment #8
drewish commentedyeah, you have to participate (hence the subscribing messages) to get your own issues sent to you.
there's no way for non-admins to remove comments, so be careful what you write ;)
Comment #9
drewish commentedi think this has broken due to some previous commits.
Comment #10
sunAnyone working on this? I second using imagecache to generate any image derivatives. Image module would not only benefit from nicer thumbs, derivative sizes could be changed at any time, because imagecache handles such updates properly.
I'd like to suggest to replace the image sizes setup in Image settings completely by Imagecache rules. Image module should create the necessary Imagecache rules/namespaces upon installation. The same should be done in a module upgrade, but converting all custom image sizes to Imagecache presets.
So basically, I would remove all image resizing functions from Image module and replace them with a hard dependency on imagecache module. I know, there will be additional impacts on Img_Assist and Image's contrib modules. However, IMO the benefits prevail.
From my own experience, I can tell that Imagecache works like a breeze.
In front of actually doing something on this, I'd like to hear if Image module maintainers will follow this proposal.
Comment #11
HansBKK commentedI may be out of line here, but seems to me this can be closed based on Dan da man's work over here:
http://drupal.org/node/231622
Just putting in my 11/2 cents that it seems to work just fine, and brings us one baby step closer to ending the insanity that is images in Drupal. :)
Many people have expressed that this functionality should get rolled into mainstream stable Image (me +1).