On Wed, 29 Oct 2008 15:36:54 -0400
Mike Breiding <mike at WildWonderfulWV.us> wrote:

> alessandro rimoldi wrote:
> > ciao
> > 
> Greetings, Alessandro
> >> So, now I am looking at resizing all 800 images I will using to
> >> the approximate size I will be using in the book.
> >> Rather daunting to say the least!
> >>
> >> Any alternatives?
> > 
> > yes: import the images one after the other as they currently are
> > and resize each image to the size you use in you book.
> 
> 
> How? In Scribus? I see no tool for that.

you're right: you will have to find/write a tool outside of scribus to that...


in the .sla you will find an entry like this for each picture:

<PAGEOBJECT OwnPage="0" PTYPE="2" XPOS="203" YPOS="176" WIDTH="307"
HEIGHT="436" RADRECT="0" FRTYPE="0" CLIPEDIT="0" PWIDTH="1"
PCOLOR="None" PCOLOR2="None" COLUMNS="1" COLGAP="0" NAMEDLST=""
SHADE="100" SHADE2="100" GRTYP="0" ROT="0" PLINEART="1" PLINEEND="0"
PLINEJOIN="0" LOCALSCX="0.317149" LOCALSCY="0.317149" LOCALX="0"
LOCALY="0" PICART="1" PLTSHOW="0" BASEOF="0" textPathType="0"
textPathFlipped="0" FLIPPEDH="0" FLIPPEDV="0" SCALETYPE="0" RATIO="1"
PRINTABLE="1" ANNOTATION="0" ANNAME="" TEXTFLOWMODE="0" TEXTFLOW="0"
TEXTFLOW2="0" TEXTFLOW3="0" AUTOTEXT="0" EXTRA="0" TEXTRA="0"
BEXTRA="0" REXTRA="0" FLOP="0"
PFILE="docs/abcd/heizung.jpg" PFILE2="" PFILE3="" PRFILE=""
EPROF="" IRENDER="0" EMBEDDED="0" LOCK="0" LOCKR="0" REVERS="0"
TransValue="0" TransValueS="0" TransBlend="0" TransBlendS="0"
isTableItem="0" TopLine="0" LeftLine="0" RightLine="0" BottomLine="0"
isGroupControl="0" NUMDASH="0" DASHS="" DASHOFF="0" NUMPO="16"
POCOOR="0 0 0 0 307 0 307 0 307 0 307 0 307 436 307 436 307 436 307 436
0 436 0 436 0 436 0 436 0 0 0 0 " NUMCO="16" COCOOR="0 0 0 0 307 0 307
0 307 0 307 0 307 436 307 436 307 436 307 436 0 436 0 436 0 436 0 436 0
0 0 0 " NUMGROUP="0" GROUPS="" startArrowIndex="0" endArrowIndex="0"
OnMasterPage="" ImageClip="" ImageRes="1" Pagenumber="0" isInline="0"
fillRule="1" doOverprint="0" gXpos="0" gYpos="0" gWidth="0" gHeight="0"
LAYER="0" BOOKMARK="0" NEXTITEM="-1" BACKITEM="-1">

if the image is of the size of the frame, you will now know that your current 
picture is 307 pixel wide and 436 high. you also have the path to the picture 
in PFILE...

feed this data to imagemagik and you will have all the pictures at the right 
size (i would backup the images first).



i think that it should also be possible to create a python script which would 
do that work inside of scribus. this script doesn't exist yet but should be 
easy to develop if the current API supports that features.

ciao
a.l.e


Reply via email to