EPS preview

Author Message

Siw Helen Thorslund

Friday 01 September 2006 4:18:35 am

We have an image gallery where the original is an eps-file.
The gallery is set up so you can download the original file.
But we would like to present a preview of the eps as a thumbnail.

Anyone know a solution for this?

www.VZT.no ( http://www.VZT.no )
VZT References ( http://http://vzt.no/index.php/vzt_eng/referanser )
VZT Extensions ( http://vzt.no/index.php/vzt_eng/extensions )
www.MediaBase.no ( http://www.MediaBase.no )

Sascha Frinken

Friday 01 September 2006 5:10:00 am

Afaik Image Magick convert can do that for you.

convert filename.eps filename.png

HTH

Sascha

Siw Helen Thorslund

Friday 01 September 2006 5:26:46 am

Thank you for your quick reply!

How exactly do you do convert with Image Magic in eZ publish?

www.VZT.no ( http://www.VZT.no )
VZT References ( http://http://vzt.no/index.php/vzt_eng/referanser )
VZT Extensions ( http://vzt.no/index.php/vzt_eng/extensions )
www.MediaBase.no ( http://www.MediaBase.no )

Siw Helen Thorslund

Sunday 03 September 2006 6:35:46 am

Anyone with a quick hint on this?

www.VZT.no ( http://www.VZT.no )
VZT References ( http://http://vzt.no/index.php/vzt_eng/referanser )
VZT Extensions ( http://vzt.no/index.php/vzt_eng/extensions )
www.MediaBase.no ( http://www.MediaBase.no )

Claudia Kosny

Sunday 03 September 2006 8:07:56 am

Hello Siw

Just add an additional image alias in the image.ini.append.php. Example:

[file2png]
Reference=
MIMEType=image/png
# you can also resize the resulting image
#Filters[]
#Filters[]=geometry/scaledownonly=100;160

Greetings from Luxembourg

Claudia

Siw Helen Thorslund

Sunday 03 September 2006 11:14:19 am

Thank you for your reply, but I have tested this without any luck.

Where do the actuall conversion from eps to png take place?

www.VZT.no ( http://www.VZT.no )
VZT References ( http://http://vzt.no/index.php/vzt_eng/referanser )
VZT Extensions ( http://vzt.no/index.php/vzt_eng/extensions )
www.MediaBase.no ( http://www.MediaBase.no )

Claudia Kosny

Sunday 03 September 2006 11:29:10 am

Hello Siw

what do you mean by 'without any luck'? Was there any picture created once you tried this alias (chck in the var/storage/images folder)? Did you get any error message?

How exactly did you try to create the image alias? (Maybe post your image.ini.append.php and the part of your template where you try to display the image.)

Do you use imagemagick or gd?

Sorry for the load of questions - it worked for me just fine so I am trying to find out what is going on.

EDIT: I just read that imagemagick needs ghostscript to work with eps files which is installed on my machine. So maybe this is the problem on your machine. If you have shell access to your machine, you can try the imagemagick command "identify -list format" (without the quotation marks) to see whether it can deal with eps files.

Greetings from Luxembourg

Claudia

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.