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.

eZ debug

Timing: Jan 18 2025 16:15:08
Script start
Timing: Jan 18 2025 16:15:08
Module start 'layout'
Timing: Jan 18 2025 16:15:08
Module start 'content'
Timing: Jan 18 2025 16:15:09
Module end 'content'
Timing: Jan 18 2025 16:15:09
Script end

Main resources:

Total runtime1.1996 sec
Peak memory usage4,096.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.9063152.6094
Module start 'layout' 0.00560.0035 741.515639.4063
Module start 'content' 0.00901.1891 780.9219613.4844
Module end 'content' 1.19810.0015 1,394.406316.2031
Script end 1.1996  1,410.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2588160.0002
Check MTime0.00120.1033160.0001
Mysql Total
Database connection0.00080.064110.0008
Mysqli_queries1.137294.7963710.0160
Looping result0.00070.0606690.0000
Template Total1.168497.420.5842
Template load0.00210.173920.0010
Template processing1.166397.226420.5832
Template load and register function0.00010.008210.0001
states
state_id_array0.00080.068410.0008
state_identifier_array0.00130.111320.0007
Override
Cache load0.00180.1541390.0000
Sytem overhead
Fetch class attribute can translate value0.00060.053930.0002
Fetch class attribute name0.00120.100780.0002
XML
Image XML parsing0.00070.058430.0002
class_abstraction
Instantiating content class attribute0.00010.0087110.0000
General
dbfile0.00090.0718160.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs