Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-01-2024, 02:38 PM   #1
repilo
Enthusiast
repilo began at the beginning.
 
Posts: 44
Karma: 10
Join Date: Apr 2021
Location: Spain
Device: Kobo Libra 2
Suggestion: rename image

Currently, when editing an html file, clicking <Ctrl>Left on a jpg file name text inside <img ...>, opens a floating window where you can see the jpg image. This window has [X] and [Done] buttons to close it.

Could you add another button to rename the jpg file?

Maybe put a box with the file name that can be edited and saved?

The usefulness of this is that I often find long jpg filenames with meaningless numbers and I like to change it to a more meaningful one, but for that I have to see it in the html along with its caption where the content is explained (or even there it is called e.g. "Figure 1"). Then I have to remember that file name (e.g. capture_106_20230518132814066.jpg) to find it in the list in the left panel and change it there (e.g. figure_01.jpg).

Sincerely grateful for your work.
repilo is offline   Reply With Quote
Old 04-01-2024, 03:11 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,675
Karma: 5433388
Join Date: Nov 2009
Device: many
You need to rename it in BookBrowser like you do other files, or even use RegexRename to bulk rename them, and Sigil will properly update all links to it throughout the entire epub.

The key is that BookBrowser is where file renaming is done when focus is there to prevent broken links from renaming a file you are actually editing.

You can copy out of the caption or img alt string easily enough out of the html and can see the image in Preview that will sync itself. So there is no need to open a copy of that image just to rename it.

You might also want to try the Image Reports to see filenames and thumbnails of the images in tabular format to figure out new names. You can export that report and use it to walk/rename the images in BookBrowser one after the other.

Last edited by KevinH; 04-01-2024 at 03:39 PM.
KevinH is offline   Reply With Quote
Old 04-02-2024, 02:09 AM   #3
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 695
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
The way I use:
I don't select "Go To Link Or Style", I don't click with Ctrl.
I simply call up the right-click context menu on the image link and select "Open Tab For Image".
This causes the image to be displayed in a new tab, but – most importantly – the corresponding image in the Book Browser is activated.
I now calmly rename the image.

Ta-da!
Attached Thumbnails
Click image for larger version

Name:	sigil-image-src-open-tab-for-image.png
Views:	46
Size:	7.6 KB
ID:	207294  
BeckyEbook is online now   Reply With Quote
Old 04-02-2024, 09:22 AM   #4
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,675
Karma: 5433388
Join Date: Nov 2009
Device: many
That is even faster / easier as it gets BookBrowser to highlight that file.
KevinH is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a way to rename this? ownedbycats Calibre 3 10-18-2020 11:18 AM
Rename and sort frankenfrank Calibre 3 06-28-2016 01:57 AM
Help with rename title ? crnirg Library Management 0 05-31-2016 03:49 PM
Rename series theducks Calibre 2 05-02-2010 08:44 PM
rename subforums deadite66 Feedback 6 03-06-2007 03:01 PM


All times are GMT -4. The time now is 06:37 AM.


MobileRead.com is a privately owned, operated and funded community.