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.

Comments

guardian’s picture

StatusFileSize
new10.36 KB

here is the patch

guardian’s picture

StatusFileSize
new10.36 KB

fixed patch name so that it's downloadable

guardian’s picture

please read "each derivative is NOW mapped to an imagecache's preset."

ray007’s picture

subscribing.
imagecache integration sounds like a good idea to me ;-)

dharamgollapudi’s picture

I 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.

drewish’s picture

Satynos, 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".

dharamgollapudi’s picture

drewish:

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.

drewish’s picture

yeah, 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 ;)

drewish’s picture

Version: 6.x-1.x-dev » 5.x-1.x-dev
Status: Active » Needs work

i think this has broken due to some previous commits.

sun’s picture

Anyone 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.

HansBKK’s picture

Status: Needs work » Closed (fixed)

I 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).