Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 08-01-2023, 04:54 AM   #1
torsten
Junior Member
torsten began at the beginning.
 
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
torsten is offline   Reply With Quote
Old 08-01-2023, 05:08 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://www.mobileread.com/forums/sh...d.php?t=186697
kovidgoyal is offline   Reply With Quote
Advert
Old 08-01-2023, 05:11 AM   #3
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
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>
Karellen is offline   Reply With Quote
Old 08-01-2023, 08:24 AM   #4
torsten
Junior Member
torsten began at the beginning.
 
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.
torsten is offline   Reply With Quote
Old 08-01-2023, 08:33 AM   #5
torsten
Junior Member
torsten began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2023
Device: none
Pardon, attachment was missing.
Attached Files
File Type: rar Dokumentation.rar (2.82 MB, 62 views)
torsten is offline   Reply With Quote
Advert
Old 08-01-2023, 09:00 AM   #6
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
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.
Quoth is offline   Reply With Quote
Old 08-01-2023, 09:27 AM   #7
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
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:
<img alt="" src="Pictures/10000000000001A300000258372F48E4.jpg" 
width="219" height="300" class="calibre2"/> 
Comfy.n is offline   Reply With Quote
Old 08-01-2023, 12:47 PM   #8
torsten
Junior Member
torsten began at the beginning.
 
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)?
torsten is offline   Reply With Quote
Old 08-01-2023, 01:07 PM   #9
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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
Quote:
Originally Posted by torsten View Post
hello,
thank you very much.
can you tell me how to cross out the code (width: auto)?
Strikeout is a Forum style
you want to 'comment out' ( /* stuff to disable */ )
or simply remove
theducks is offline   Reply With Quote
Old 08-01-2023, 01:14 PM   #10
torsten
Junior Member
torsten began at the beginning.
 
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.
torsten is offline   Reply With Quote
Reply

Tags
.ebub, .odt


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 08:35 PM.


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