Scribus Forums

Scribus => Beginner Talk => Topic started by: Ragnarw on September 14, 2019, 12:04:14 am

Title: List of inserted images
Post by: Ragnarw on September 14, 2019, 12:04:14 am
Hi everyone.
I am working on a 30 page photoalbum with about 180 photos. Now I somehow lost track of the inserted images in the project and I am wondering how I can export a list of inserted images with either a relative file path or absolute file path. I know I can find it in the .sla file but don't know how to filter out just the filename with the filepath. And the "Manage Images" option just makes one really confused staring at all the images.
Looking forward to hear from you guys.
Brgds.,
Ragnarw
Title: Re: List of inserted images
Post by: Nermander on September 14, 2019, 09:37:30 am
I don't think you can do it from Scribus. At least not withtout scripting it.

If you don't need the path, you could maybe Collect for output into a temporary folder and make a (file) list of the images there (but I am not 100% sure Scribus retains the file name if for example two images have the same name but different path).
Title: Re: List of inserted images
Post by: none on September 14, 2019, 05:49:17 pm
You can  open the sla-file with a text-editor. search for "pfile", and you get your path. maybe it helps ...
Title: Re: List of inserted images
Post by: a.l.e on September 15, 2019, 10:14:41 am
this scribus wiki page presents one of the versions of the export all texts that can simply export the name of all images in the current document:

https://wiki.scribus.net/canvas/Export_all_text

if you don't know how to create a python script based on this, just ask and i'll provide you a file you can download.
Title: Re: List of inserted images
Post by: Ragnarw on September 15, 2019, 01:16:15 pm
Hi a.l.e

I would be very greatful if you wold create a script for me and tell me how to use it. Althoug working with computer for many years now I never worked with python or other kind of programing. So please and thank you.
Brgds.,
Ragnar W.
Title: Re: List of inserted images
Post by: a.l.e on September 16, 2019, 10:51:33 am
hi ragnar

here it is:

https://raw.githubusercontent.com/aoloe/scribus-script-repository/master/export-all-images/export-all-images.py

- follow the link above.
- "file > save" in your browser.
- in scribus, trigger "scripter > execute script" and pick the file you just  saved. (it's probably called "export-all-images.py)
- when asked for a file name, pick one that does not exist yet (with a ".txt" ending)
- open the .txt file with a text editor and do whatever you want with the list of file names : - )
Title: Re: List of inserted images
Post by: Ragnarw on September 17, 2019, 01:52:28 am
Hi a.l.e.
Thanks for your work, but it does not work. The txt output file is attached.
Just to be sure I'm doing it right.
1 I downloaded "export-all-images.py"
2 I open the project in scribus.
3 Script>Execute Script, opened the script file
4 Entered a name for the output file with .txt extension
and the result is in the attachment "mynd.txt"
If you could look into it I would be grateful.
B.t.w. If it matters, my scribus is version 1.4.6
Best regards,
Ragnar W.
Title: Re: List of inserted images
Post by: utnik on September 17, 2019, 06:56:13 am
hi ragnar

i downloaded ale's script, saved it where i keep my scripts for scribus and tested it with scribus 1.4.8 and 1.5.6.
with both scribus versions it generated a list with the paths to all the placed images.
i don't know what went wrong when you tested it…

utnik
Title: Re: List of inserted images
Post by: Ragnarw on September 17, 2019, 09:09:58 am
Hi Utnik.
Thanks for testing. I'll then try again and try to find out what I did wrong.
But thangs guys for all your help,
brgds,
Ragnar W
Title: Re: List of inserted images
Post by: Ragnarw on September 17, 2019, 09:21:49 am
Hi guys, Ale and Utnik
I tried again this morning and it works fine. A complete list.
I guess a reboot was required to clean up the mess in the computers memory. (Windows not Linux)
Thanks and brgds.,
Ragnar W.
Title: Re: List of inserted images
Post by: a.l.e on September 17, 2019, 09:41:57 am
nice to see that it finally worked for you.
(in the future (maybe not that far away), there will be a way to produce such a list without using a script)

of course, a reboot was needed at all. at least not for the computer.
but starting from zero again, and following instructions step by step often helps getting on the right path.
Title: Re: List of inserted images
Post by: Ragnarw on September 17, 2019, 11:28:12 am
Thanks again  ;)