Author Topic: How many images does my document contain/link to?  (Read 756 times)

Dogil

  • Newbie
  • *
  • Posts: 25
  • Karma: 0
  • Scribus User
How many images does my document contain/link to?
« on: May 23, 2016, 09:46:33 am »
May be I'm missing something, but can I see somewhere how many images are linked to from my Scribus document? I suppose I can open the scribus file and search for the folder name they are contained in, but is there a less hackery way?

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1250
  • Karma: 18
    • the graphics lab
Re: How many images does my document contain/link to?
« Reply #1 on: May 23, 2016, 10:27:21 am »
extras > manage images...

but you still have to count...

Dogil

  • Newbie
  • *
  • Posts: 25
  • Karma: 0
  • Scribus User
Re: How many images does my document contain/link to?
« Reply #2 on: May 23, 2016, 11:06:08 am »
I see, so opening the file in a text editor is the way to go indeed. I can't count 200+ images in the image manager without having to start over multiple times because the phone rings or whatever reason you get mixed up.

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1250
  • Karma: 18
    • the graphics lab
Re: How many images does my document contain/link to?
« Reply #3 on: May 23, 2016, 11:12:40 am »
well, if you know what a text editor is... you might also want to have a look at the scripter.

F1... developer things... and so on...

if you know some python you get and tweak https://wiki.scribus.net/canvas/Export_all_text to count the images for you.
it won't be faster than manually count them (for the first time) but funnier :-)

the script must be run inside of scribus...

Dogil

  • Newbie
  • *
  • Posts: 25
  • Karma: 0
  • Scribus User
Re: How many images does my document contain/link to?
« Reply #4 on: May 23, 2016, 11:26:15 am »
Humm:
Sorry, no manual is installed!
Please see:
http://docs.scribus.net for updated documentation
http://www.scribus.net for downloads

Dogil

  • Newbie
  • *
  • Posts: 25
  • Karma: 0
  • Scribus User
Re: How many images does my document contain/link to?
« Reply #5 on: May 23, 2016, 11:33:04 am »
if you know some python you get and tweak https://wiki.scribus.net/canvas/Export_all_text to count the images for you.

Bummer. Just ran this script and now have to force quit Scribus, because the pop up message box "Finished" can't be closed and blocks everything. :(

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1250
  • Karma: 18
    • the graphics lab
Re: How many images does my document contain/link to?
« Reply #6 on: May 23, 2016, 11:58:53 am »
... remove the message box :-)
(no idea what the issue is... i did not write that script)

for the docs: you will have to enable the non-free documentation in your package manager.

the team has migrated part of the docs to the wiki, but the part for developers has -- afaik -- not been copied.
https://wiki.scribus.net/canvas/Help:TOC

the documentation is in svn...

https://www.scribus.net/websvn/filedetails.php?repname=Scribus&path=%2Fbranches%2FVersion14x%2FScribus%2Fscribus%2Fdoc%2Fen%2Fscripterapi.html

so, if you get the svn code, you can then browse to Scribus/scribus/doc/en and you will a bunch of html files called scripterapi*.html that you can browse with a browser...

something like svn co svn://scribus.net/trunk/Scribus/scribus/doc/en scribus-api-doc should fetch the html files for you...

yes, i know, it's a pain :-(

 

palmate