the images seem to work of with scribus 1.5
the same for 1.4.
i gave it a few tries and did not found any issue.
first, i had to amke sure that the image files are shown in order (eventually rename the files with -1.jpg, -2.jpg to -01.jpg, -02.jpg and so on... )
on windows the order might be more intelligent, but here i needed to add the missing zeros to the filenames to get the right order.
then, a few hints for the workflow
with 1.4
- in the file > document settings > tools > image frame set the image to automatically fill the frame (by default)
- with shift click create an image frame that fills the page
- load the image
- item > adjust frame to image
- page > snap to guide
- move the frame down to the bottom margin
- keep the properties palette open to see the position and size
- insert > frames and insert on all pages with the position and size you see in the properties palette
- remove the double you already did import
- drag each image from a file manager (this works for me on linux... i don't see why it should not work on windows...)
with scribus 1.5
- in the file > document settings > tools > image frame set the image to automatically fill the frame (by default)
- with shift click create an image frame that fills the page
- load the image
- item > adjust frame to image
- page > snap to guide
- move the frame down to the bottom margin
- copy the y position
- edit > master page
- page > manage guides and add an horizontal by pasting the y position of the item
- (do it for both master pages)
- close the editor
- delete the image frame
- zoom out to see many pages
- create an image frame on the first page
- open the load image dialog and select all the images in the directory
- click on the first image frame to fill it with the first image
- shift click on the lower part of each page (in the right order) to fill the part below the guide with the new image
- repeat for each empty page.
but, well, it's a lot of images.
i've created a simple python script that fills all frames with the files in a directory.
(based on
https://wiki.scribus.net/canvas/Automatic_import_of_images_from_a_directory_using_a_script)
# - get the directory with all images
# - on the first page where you want the image create an image frame of the right size
# - select the empty image frame
# - run the script
# - the script copies the frame, then loads the first image in the exiting frame
# - then on other following pages paste the emtpy frame and load the next image
# - if there are not enough pages, create them to put all the images in the directory
import os
import sys
import scribus
if not scribus.haveDoc():
scribus.messagebarText("No .")
sys.exit()
if scribus.selectionCount() == 0:
scribus.messagebarText("No frame selected.")
sys.exit()
if scribus.selectionCount() > 1:
scribus.messagebarText("Please select one single frame.")
sys.exit()
master_frame = scribus.getSelectedObject()
x,y = scribus.getPosition()
width, height = scribus.getSize()
path = scribus.fileDialog("Pick a directory", scribus.getDocName(), isdir = True)
if path == '':
scribus.messagebarText("No directory selected.")
extensions = ['jpg', 'png', 'tif']
filenames = [f for f in os.listdir(path)
if any(f.endswith(ext) for ext in extensions)]
if not filenames:
scribus.messagebarText("No image found.")
sys.exit()
# sorted(filenames)
filenames.sort()
scribus.loadImage(filenames[0])
filenames = filenames[1:]
page = scribus.currentPage() + 1
n_pages = scribus.pageCount()
for filename in filenames:
print(filename)
if page <= n_pages:
scribus.gotoPage(page)
else:
# TODO: currently this does not work if there are multiple master pages
# (facing pages). you need to create all pages before loading the images.
scribus.newPage(-1)
scribus.gotoPage(scribus.pageCount())
new_image = scribus.createImage(x, y, width, height)
scribus.setScaleImageToFrame(True, True, new_image)
scribus.loadImage(filename, new_image)
page += 1
you can download it from
https://raw.githubusercontent.com/aoloe/scribus-script-repository/master/load-images/load-images.pyput it somewhere and run it with "script > execute scripts..."
it loads the 150+ images in about 20 seconds...
just one warning: the scripter currently cannot create new pages if you have a facing pages document (i have created a ticket for this:
https://bugs.scribus.net/view.php?id=15515).
voilà, finally, this is the document with all images in there (created with my script):
https://framadrop.org/r/yg2gspfiwo#uAsPscgwnLSl/D87QYmqeieIwWkgAYoKhmjTxzdfZqw=bonne chance!
a.l.e