I am looking to have a user upload a Hi-Res image with ImageField, resulting in a node with a preview of the image and links to different imagecache presets for download. Is there a way to link to specific presets? or is it even possible to download an imagecache derivative?

Thanks,
Paul

Comments

adrien.felipe’s picture

Hi Paul,

I'm looking to do the same thing. For now I'm trying to install imageMagik on my server as I guess it will be the way to resize and manipulate the different versions of the uploaded high-res images. Then with a page template I will generate several links to the image derivatives hopping ImgaCache will create them correctly. Did you find another solution for this ?

I'm wondering if when using GDD or ImageMagik, there is a way to set the image DPI resolution ?

Thanks and best regards
WS.

drewish’s picture

Status: Active » Fixed

you guys need to look at the various imagefield formatter options. you only get to pick one per build mode but you can always reuse code from theme_imagecache_formatter_imagelink(), theme_imagecache_formatter_url() etc.

you should be able to specify the dpi with imagemagick but i'm not sure the browsers will really display them any differently. take a look at http://drupal.org/project/im_raw

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

marcoka’s picture

did you find a solutuion. i am actually thinking about hardcoding it to mymodule. but thats not the best idea i think.

johnv’s picture

I had the same request, and did the following, thanks to drewish's hint and module.imagecache_preset2canvas.
Now you can make a change HiRes, and a preview of the Change HiRes:

- install the modules: image_cache, imagecache_actions, imagecache_preset2canvas, lightbox2
- create a ContentType, add ImageField.
Create 3 imageCache presets:
- create a ImageCache preset 'Original_150' a preview of 150pixels of the HiRes, e.g.: Scale 150x100%
- create a ImageCache preset 'Derivate_HiRes' to change the HiRes,
e.g.: Overlay: source image to canvas + Overlay (watermark)
- create a ImageCache preset 'Derivate_150' using preset2canvas, to make a preview of 150pixels of the HiRes,
e.g.: Overlay: same image to canvas + Scale 150x100%
Create a View with Style=Table and the following fields:
Node: Title Title
Content: Image Lightbox2: original_150->original_ori
Content: Image Lightbox2: derivate_150->derivate_HiRes
Content: Image derivate_HiRes URL
Now you see 2 previews of original and derivative, and a link to the HiREs.

This is not an 'official' downloadlink, so I'd love to see something like: 'Image: download link', just like 'Node: Edit link'.
Also, If you have different preset, this is not flexible to choose other presets...

marcoka’s picture

im writing a module at the moment, that does the following: Its shows informations under every imagefield:

- size
- resolution
- name(imagecache presetname or optinal custom name
- with dl link

there is an interface that allows to chose which presets should be displayed.

I did that because i wanted a wallpaper gallery like output. I´ll try to realease it when its finished.

sublimina’s picture

sounds like a great module, looking forward to it.