imagecache support
igorik - June 28, 2009 - 21:32
| Project: | Image Picker |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | hutch |
| Status: | active |
Jump to:
Description
Hi
Could you add please support of imagecache instead typing size of bigger side of image?
There is choosing of image size with imagechache module so easy and comfort (User only will choose from combobox with allowed imagecache profiles).
It could be use with (if module_exists('imagecache')), without imagecache it can stay as it is now.
Or it could be submodule imagepicker_imagecache.
Thanks
Igor
http://www.somvprahe.sk

#1
I will look into this, it won't be easy as imagecache requires imageapi which requires one of the image toolkits. It's a very different way of doing things but nonetheless might provide better functionality
#2
Agree imagecache support
#3
Because he can not set permissions
#4
I agree, Imagecache's preset image size feature is nice.
Can Image Picker reduce the dimensions of the uploaded image as well, or make a reduced copy and delete the original, to save space (in addition to creating the thumbnails)? It's easy for a user to upload a multi-megabyte file that they scale in size for use in a blog post. The scaled image could actually be a reduced image that stores in 100k or less space. I can't ask them to reduce it themselves before uploading, most will not know how to do this.
Steve
#5
I did say that I would look into Imagecache integration but I haven't done so as yet, tsk tsk ;-(
I did look but it is so very different. In particular it requires
# Install and enable ImageAPI module *and* one of its toolkits (GD or ImageMagick)
# Install and enable Transliteration module
Still, I will try again.
Back to your question:
Imagepicker can resize on upload and this can be set as a default by admin but it is not ATM enforced so a user can override the size. It's done by stating the size to be applied to the largest side.
In one of the more recent versions I added the saving of the original so that subsequent manipulations could be done on that original, better than resizing an image that has already been resized on upload.
However I do take your point that this should be an option which admin and or user can switch off. I will look into this, It should be doable.
#6
Thanks for looking into it.
I've already installed ImageAPI and both GD and ImageMagick, neither was too difficult... but I agree that installing multiple modules to get a new function can be daunting to prospective users of Image Picker. I did not install the Transliteration module and haven't had the need for it.
Agreed that keeping the original is best if a later re-size is needed, but in my sites I expect the users to keep their own originals and it's unlikely they'd want/need to resize.
Steve