ImageMagick convert options

Author Message

jay l

Sunday 04 July 2004 7:51:09 pm

Hey, all. I'm looking for a way to customize the convert command, I need to append [0] to the filenames, like this filename.pdf[0], so only the first frame/scene is read. I am trying to achive thumbnails of pdf's, but only want the first page, not the rest - thumbnails of 100 page documents is a waste of space, but by default it thumbs every page. I need to get a command like this going:

convert in.pdf[0] out.jpg

I've seen options for pre and post commands, in image ini, and custom convert command, but how do i append just [0] to the filename like the above example?!

Any help would be much appreciated, this should be something so simple to do

Ekkehard Dörre

Friday 25 March 2005 7:00:44 am

Hi jay,

I have the same problem und one more, when the PDF is CMYK (prepress) there should be a CMYK to RGB conversion for browsers, too.
Has anybody an idea where to start? This is a nice feature: Thumbnail for PDF documents. With imagemagick and ghostscript installed.

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

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 19 2025 09:44:09
Script start
Timing: Jan 19 2025 09:44:09
Module start 'layout'
Timing: Jan 19 2025 09:44:09
Module start 'content'
Timing: Jan 19 2025 09:44:10
Module end 'content'
Timing: Jan 19 2025 09:44:10
Script end

Main resources:

Total runtime0.9151 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 589.1563152.6250
Module start 'layout' 0.00710.0035 741.781339.4453
Module start 'content' 0.01070.9029 781.2266523.1719
Module end 'content' 0.91360.0015 1,304.39848.3203
Script end 0.9150  1,312.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3946160.0002
Check MTime0.00140.1546160.0001
Mysql Total
Database connection0.00080.084610.0008
Mysqli_queries0.865494.5702540.0160
Looping result0.00070.0725520.0000
Template Total0.876195.720.4380
Template load0.00210.233820.0011
Template processing0.873995.503420.4370
Template load and register function0.00020.023810.0002
states
state_id_array0.00120.128110.0012
state_identifier_array0.00080.089820.0004
Override
Cache load0.00170.1902130.0001
Sytem overhead
Fetch class attribute can translate value0.00090.095220.0004
Fetch class attribute name0.00140.158030.0005
XML
Image XML parsing0.00060.068720.0003
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00260.2867160.0002
String conversion0.00000.001240.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs