This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » General » Using ImageMagick to add...

Using ImageMagick to add "drop-shadow" effect to images

Using ImageMagick to add "drop-shadow" effect to images

Wednesday 28 May 2003 1:18:47 pm - 5 replies

Hi all!

I want to add "drop-shadow" effect to all images that are uploaded. ImageMagick can add such an effect. Does anybody know how one could du this in ezPublish?

Any tip would be appreciated..

happy.gif Emoticon Felix

Wednesday 28 May 2003 1:53:41 pm

You can use the configure convert with extra command line options in settings/image.ini under the [ShellSettings] block.

Some examples:

A 6 pixels black border around the images:
ConvertExecutable=convert -mattecolor "#00ff00" -frame 6x6

White copyright text in the upper left corner of converted images:
ConvertExecutable=convert -font helvetica -fill white -draw "text 10,20 'Copyright(C) eZ systems'"

Create a yellowish color on converted images:
ConvertExecutable=convert -colorize 0/0/50

Remember to clear the cache and image variations if you want the changes to apply for already existing images.

To remove image variations run the SQL command:
mysql> delete from ezimagevariation;



Wednesday 28 May 2003 2:01:54 pm

Hi Felix

eZ publish use convert to convert the images and scale them to the preset sizes. I'm not sure how the "drop-shadow" effect is used, but if you can use it the the convert executable, you can use it in eZ publish.

Open your image.ini file (or one of the .append files) and find the variable ConvertExecutable. This should be set to "convert" by default. Here you can add as many parameters to convert as you want. Ex: If you set "ConvertExecutable=convert -gamma 50" then all images would use 50 as gamma correction.

Wednesday 28 May 2003 2:02:51 pm

Hmm... looks like Bård beat me with a quicker reply happy.gif Emoticon

Wednesday 28 May 2003 2:05:49 pm

Yes, and I even added a community documentation page for it:


Wednesday 28 May 2003 2:18:29 pm

happy.gif Emoticon THANX happy.gif Emoticon


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from