Difference between revisions of "Imagemagick Imposition"

From Scribus Wiki
Jump to: navigation, search
m
m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{Scripting Index}}
 +
 
Below is a bash script depending on ImageMagick 6.2.x which makes simple imposition of PNG files exported from Scribus.
 
Below is a bash script depending on ImageMagick 6.2.x which makes simple imposition of PNG files exported from Scribus.
  
Line 4: Line 6:
 
Copyright: Mikołaj Machowski 2006 ( mikmach AT wp DOT pl )
 
Copyright: Mikołaj Machowski 2006 ( mikmach AT wp DOT pl )
  
Usage: impos -o format [options]
+
'''Usage:''' impos -o format [options]
  
Where options are:
+
'''Options:'''
 
   -c - color of background (default: white)
 
   -c - color of background (default: white)
 
   -d - directory for outut (default: imposout)
 
   -d - directory for outut (default: imposout)
Line 12: Line 14:
 
   -m - multiply first image to fill empty sheets
 
   -m - multiply first image to fill empty sheets
 
   -o - format of transformation, arguments are
 
   -o - format of transformation, arguments are
           2up     - 2-Up
+
           2up       - 2-Up
           4ss     - 4-Up Saddle-Stitching
+
           4ss       - 4-Up Saddle-Stitching
 
           4tumble  - 4-Up Work-and-Tumble
 
           4tumble  - 4-Up Work-and-Tumble
 
           4turn    - 4-Up Work-and-Turn
 
           4turn    - 4-Up Work-and-Turn
Line 22: Line 24:
 
http://www.prepress.pps.com/TechReports/imposetr.html
 
http://www.prepress.pps.com/TechReports/imposetr.html
  
WARNING: it takes order of pages the same as ls is returning. But Scribus is creating filenames in natural order like:
+
WARNING: it takes the same order of pages as return by the '''ls''' command,  but Scribus creates filenames in natural order like:
  
 
     filename-page1.png, filename-page2.png .. filename-page10.png
 
     filename-page1.png, filename-page2.png .. filename-page10.png
  
You obviously see where is danger: listing will be in "computer" order – like: 1, 10, 11, 12, ..., 2, 21, etc. To avoid problems you should fill numbers with 0 (01, 02, 03, etc.). IMO it would be good thing if Scribus would do that by itself, it would help in all situations where proper order of listing is important.
+
You surely can see the danger: the listing will be output in the "computer" order, e.g.: 1, 10, 11, 12, ..., 2, 21, etc. To avoid such problems you should attach a leading 0 to numbers (01, 02, 03, etc.). IMO it would be a good thing if Scribus did  that by itself, it would help in all situations where the proper sorting of listings is important.
  
 
This is simple imposition targeted toward simply home jobs to fit in A4/A3 printer, without crop/fold/register marks. If someone would be
 
This is simple imposition targeted toward simply home jobs to fit in A4/A3 printer, without crop/fold/register marks. If someone would be
interested in getting those features I will expand it. Note: bleed space will be never supported due to nature of image export from Scribus  :)
+
interested in getting those features I will expand it. Note: bleed space will be never supported due to the nature of image export from Scribus  :)
  
  
* [[http://linux.hanski.info/static/download/impos Download Imagemagick Imposition]]
+
* [http://linux.hanski.info/static/download/impos Download Imagemagick Imposition]

Latest revision as of 08:44, 25 October 2006

This article is part of the Scripts series.

Below is a bash script depending on ImageMagick 6.2.x which makes simple imposition of PNG files exported from Scribus.

Version: IMpos 1.0 11.10.2006 Copyright: Mikołaj Machowski 2006 ( mikmach AT wp DOT pl )

Usage: impos -o format [options]

Options:

 -c	 - color of background (default: white)
 -d	 - directory for outut (default: imposout)
 -h	 - this help
 -m	 - multiply first image to fill empty sheets
 -o	 - format of transformation, arguments are
          2up       - 2-Up
          4ss       - 4-Up Saddle-Stitching
          4tumble   - 4-Up Work-and-Tumble
          4turn     - 4-Up Work-and-Turn
          8tumble   - 8-Up Work-and-Tumble
          8tur      - 8-Up Work-and-Turn

More info about imposition on: http://www.prepress.pps.com/TechReports/imposetr.html

WARNING: it takes the same order of pages as return by the ls command, but Scribus creates filenames in natural order like:

   filename-page1.png, filename-page2.png .. filename-page10.png

You surely can see the danger: the listing will be output in the "computer" order, e.g.: 1, 10, 11, 12, ..., 2, 21, etc. To avoid such problems you should attach a leading 0 to numbers (01, 02, 03, etc.). IMO it would be a good thing if Scribus did that by itself, it would help in all situations where the proper sorting of listings is important.

This is simple imposition targeted toward simply home jobs to fit in A4/A3 printer, without crop/fold/register marks. If someone would be interested in getting those features I will expand it. Note: bleed space will be never supported due to the nature of image export from Scribus  :)