Closed (fixed)
Project:
ImageCache
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Jul 2007 at 10:59 UTC
Updated:
11 Oct 2010 at 09:57 UTC
A new action (besides crop, scale, resize) that adds rounded corners.
The action could merge the main image with four .PNGs or .GIFs (each for one corner, or better the same just rotated by 90°, 180°, 270°).
One default corner_10px.png file could be included while it should be possible to add a path to a custom corner image (for different background color or corner radius).
The corner image could also be dynamically generated (while i would prefer the custom path). This could be an approach: http://www.assemblysys.com/dataServices/php_roundedCorners.php
Comments
Comment #1
amitaibuWhat about Rounded Corners module?
Comment #2
derjochenmeyer commentedThe rounded corners module (btw: i dont get it working) applies rounded corners using jquery. So its a client side thing. Having a list lets say of products or a gallery with 100+ thumbnails the clients computer will ahve a hard time.
Imagecache-rounded-corners coluld be a browser independent fully controllable (and simply customizeable) way of doing this. And its all in one place. If i want to resize crop scale and add round corners to my image it would be great if one module does this task.
Imagecache is the perfect module to handle all image modification in my oppinion and i would love to have this fuctionality. I tried to hack this module for a project but im not skilled enough :(
I unsuccessfully tried hacking the function imagecache_cache() by modifying the image before this line file_move($tmpdestination, $destination);
any ideas what i did wrong?
Comment #3
derjochenmeyer commentedrounded corners module (btw: now i got it working) is not easy to configure. And its tricky to add rounded corners to images.
The corners created by the rounded corners module are furhtermore not very pretty. Merging a transparents png could improve quality, improve usability.
Comment #4
zmove commented+1 for rounded corner possibility with imagecache.
and +1 for a border possibility to these rounded corner (except if in css the border could follow the rounded corner).
Comment #5
sliiiiiide commentedI imagine this would be tricky to pull off, would look pretty awsome tho...
+1 from me
Comment #6
djerboa commentedI'd love to get it too! Sounds great!
Comment #7
celston commentedI was able to implement a solution for this but while I was working on it, it occurred to me that it might be more appropriate for imagecache to offer a hook for any additional actions that need to be added. See my feature request and patch here:
http://drupal.org/node/186285
Using the altered version, I created a module with the following code:
If I can get my changes to the original IC module, I'll post this as it's own (sub)module.
Comment #8
Dimm commentedYou can create round rounded corners by this patch:
http://drupal.org/node/184816
Comment #9
dopry commentedA suggestion for this would be a module that allows you to create 'Actions' and Upload images to be used for th edges or corners of a box... then it will store each action in the db with references to the images...
it will expose them to imagecache through the action hooks. and probably check if the actions are in use before allowing them to be created or deleted.
Comment #10
dman commentedI'm pretty sure that this old issue is well-solved...
imagecache_actions is now providing rounded corners if you want it.
Comment #11
emix commentedyou can also look at that
http://freelogic.pl/thumbnailer/index.php?r=site/examples
Comment #12
nuthman commentedHow did you manage to get the rounded_corners module working for images? It seems to round the border, but not the image..