Problem with image name containing capitalization when compressing

Bug #1879313 reported by Indio on 2020-05-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

Hi!

Calibre 4.16

There is a problem with image name containing capitalization when compressing.

When an image name contains capital letters, after compressing, saving and exiting the editor, when re-entering to editor the file name has been changed and the capital letters have disappeared, so the name no longer corresponds to that of the manifest.

To check, simply capitalize any image file name and perform the operation.

Thank you so much for everything,
 Calibre is the love of my life. :-)

Greetings from the Mediterranean Sea
Indio

If you are using calibre on windows where file names are
case-insensitive then you indeed cannot do this. Instead of just
changing capitalization, also change the file name slightly, then after
the change is done, change it back, but keeping the new capitalization.
So for example: change file.png to File1.png and then to File.png

 status fixreleased

Changed in calibre:
status: New → Fix Released
Indio (indio-f) wrote :

Yes, in windows, in Linux is Ok.

I have a book with 14 images whose name contains some capital letters. When I compress the images the capital letters disappear, but the name is not updated in content.opf, so the images remain invisible.

With version 4.15 there is not this problem.

Sorry for my English.

Indio (indio-f) wrote :
Indio (indio-f) on 2020-05-18
Changed in calibre:
status: Fix Released → New
Indio (indio-f) wrote :

I think it's related to:

Edit book: Fix compress images losslessly failing for a few images on windows when there are a lot of images in the book.

Closes tickets: 1877066

Indio (indio-f) wrote :

Open the sample book with edit, compress the images, close the editor. Open it again with edit, check the images.

With version 4.15 there is not this problem.

Thank you so much for everything,

Kovid Goyal (kovid) wrote :

OK, I'll take a look at it when I have a moment.

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
Indio (indio-f) wrote :

Thank you very much.
I love your work.

Greetings from the Mediterranean Sea
Indio

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers