![]() |
#1 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Aug 2023
Device: none
|
wrong image size in target file
hello alltogether
source file format: .odt target file format: .ebub image sizes: width: 419px, height: 600px calibre version 6.23 open office version: 4.1.14 issue: Images shown in the epub file are sized too big. Have tried several preferences in calibre before converting. I can't find any points in the html or css to change the image size. I'm grateful for an help. Best regards Torsten |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,611
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
How/where are you viewing the file? On an ereader, or in the Calibre viewer?
Can you post the code from your epub file for the image. It should look something like this... <p class="centre"> <img alt="Pocket Books logo" src="OEBPS/OEBPS/pocket_books.png" width="50" height="93"/> </p> |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Aug 2023
Device: none
|
Ok, the attachment contains further information.
Annotation: I used a sampl for showing the problem. The target file now displays all images too big. @Karellen: the html file contains no point concerning the image sizes. It looks like this: <p class="p-p4">*</p> <div class="p-p4"><div class="g-fr"><img alt="" src="cover.jpeg" class="calibre2"/> </div> I'm viewing the file in the Calibre viewer. |
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Aug 2023
Device: none
|
Pardon, attachment was missing.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,016
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
I'd export the epubs via conversion to docx, then since I use LO Writer I'd save them as odt format.
PDFs are only for viewing and really for paper. They are better made from Word or LO Writer after editing the styles etc. But I gave up wasting paper/ink/toner even for proofs since I got an eInk ereader. I only use new PDFs now for POD for people that only want paper books. |
![]() |
![]() |
![]() |
#7 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
|
If you remove the rule width:auto from .calibre2 and .calibre3 classes, and also add the desired dimensions to the html code as @Karelllen suggested, image gets resized:
.calibre2 { height: auto; max-height: 100%; max-width: 100%; width: auto; margin: 0; padding: 0; and PHP Code:
|
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Aug 2023
Device: none
|
hello,
thank you very much. can you tell me how to cross out the code (width: auto)? |
![]() |
![]() |
![]() |
#9 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Aug 2023
Device: none
|
Ok, thanks everybody. That works.
I'll get back if I have any further questions. |
![]() |
![]() |
![]() |
Tags |
.ebub, .odt |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error message: Invalid image: cannot identify image file <_io.BytesIO object at 0x000 | bkleine | Calibre | 0 | 12-11-2020 04:39 PM |
Can I get metadata from cover image? The image is correct but all other data is wrong | mydjtl | Library Management | 1 | 12-14-2017 05:15 PM |
paste cover image changes image's size | pipistrelosone | Editor | 1 | 10-07-2016 09:10 AM |
[Check Book] Link points to a location not present in the target file | chaot | Editor | 3 | 11-05-2015 04:25 PM |
KindleGen INCREASES image file size? | Oxford-eBooks | Kindle Formats | 13 | 09-14-2012 07:10 AM |