Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 06-30-2025, 06:26 PM   #76
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,768
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Falkor View Post
Here you go.
I also tested with 20vh – looks exactly the same.
That screenshot shows the image as expected. Why do you say that Shine 5 is not scaling the svg wrapper? The image in your screenshot is scaled.

EDIT: I attach your epub; is the same except that I added a background color so you can see the size of the div block and a red border so you can watch the size of the svg wrapper. Open again that epub in your Shine 5; the "issue" you see, actually is not an issue but a result of the proportions of the image.
Attached Files
File Type: epub svg-scaling.epub (324.7 KB, 17 views)

Last edited by RbnJrg; 06-30-2025 at 06:36 PM.
RbnJrg is offline   Reply With Quote
Old 06-30-2025, 06:54 PM   #77
Falkor
Connoisseur
Falkor began at the beginning.
 
Posts: 89
Karma: 10
Join Date: Dec 2024
Device: Tolino Shine 5
But it always renders the image at the same size. If I change the height of the div to 20vh, the div gets smaller, but the image doesn't.
Attached Thumbnails
Click image for larger version

Name:	20vh.jpg
Views:	16
Size:	127.3 KB
ID:	216609  
Attached Files
File Type: epub svg-scaling-20vh.epub (324.7 KB, 15 views)
Falkor is offline   Reply With Quote
Old 06-30-2025, 08:04 PM   #78
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,768
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Falkor View Post
But it always renders the image at the same size. If I change the height of the div to 20vh, the div gets smaller, but the image doesn't.
Ahhh. You don't want a full screen image but a half screen image (or whatever) by reducing the height of the div. Ok. Set the height of the svg wrapper instead of setting the height to the div, something like:

Code:
  <div style="text-align: center; padding: 0pt; margin: 0pt; background: lightblue">
    <svg style="height: 20vh; border: 1px solid red; box-sizing: border-box" xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 960 1207" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink">
      <image width="960" height="1207" xlink:href="../Images/picture.jpg"/>
    </svg>
  </div>
RbnJrg is offline   Reply With Quote
Old 07-01-2025, 12:22 PM   #79
Falkor
Connoisseur
Falkor began at the beginning.
 
Posts: 89
Karma: 10
Join Date: Dec 2024
Device: Tolino Shine 5
Quote:
Originally Posted by RbnJrg View Post
Ahhh. You don't want a full screen image but a half screen image (or whatever) by reducing the height of the div. Ok. Set the height of the svg wrapper instead of setting the height to the div, something like:
Right, I have to be able to change its size to make it work.

Setting the height for the SVG wrapper doesn't work either..
Attached Thumbnails
Click image for larger version

Name:	20vh-in-svg.jpg
Views:	18
Size:	129.2 KB
ID:	216624  
Attached Files
File Type: epub svg-scaling-20vh-in-svg.epub (324.7 KB, 15 views)
Falkor is offline   Reply With Quote
Old 07-01-2025, 04:06 PM   #80
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,768
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Falkor View Post
Right, I have to be able to change its size to make it work.

Setting the height for the SVG wrapper doesn't work either..
Well, indeed that Shine 5 has a bug regarding svg wrappers. Do this last thing (this should not be done, it is an extreme resource, since the way to reduce an SVG wrapper is through setting the height in the container block):

Code:
  <div style="text-align: center; padding: 0pt; margin: 0pt; background: lightblue">
    <svg style="border: 1px solid red; box-sizing: border-box"
      xmlns="http://www.w3.org/2000/svg" 
      height="20vh"
      preserveAspectRatio="xMidYMid meet" 
      version="1.1" 
      viewBox="0 0 960 1207"
      width="100%"
      xmlns:xlink="http://www.w3.org/1999/xlink">
      <image width="960" height="1207" xlink:href="../Images/picture.jpg"/>
    </svg>
  </div>
RbnJrg is offline   Reply With Quote
Old 07-01-2025, 04:21 PM   #81
Falkor
Connoisseur
Falkor began at the beginning.
 
Posts: 89
Karma: 10
Join Date: Dec 2024
Device: Tolino Shine 5
Quote:
Originally Posted by RbnJrg View Post
Well, indeed that Shine 5 has a bug regarding svg wrappers. Do this last thing (this should not be done, it is an extreme resource, since the way to reduce an SVG wrapper is through setting the height in the container block):

Code:
  <div style="text-align: center; padding: 0pt; margin: 0pt; background: lightblue">
    <svg style="border: 1px solid red; box-sizing: border-box"
      xmlns="http://www.w3.org/2000/svg" 
      height="20vh"
      preserveAspectRatio="xMidYMid meet" 
      version="1.1" 
      viewBox="0 0 960 1207"
      width="100%"
      xmlns:xlink="http://www.w3.org/1999/xlink">
      <image width="960" height="1207" xlink:href="../Images/picture.jpg"/>
    </svg>
  </div>
No luck.

I hope this really is a bug and not meant to be a feature..
Attached Thumbnails
Click image for larger version

Name:	20-vh-attribute-in-svg.jpg
Views:	18
Size:	129.2 KB
ID:	216634  
Attached Files
File Type: epub svg-scaling-20vh-in-svg-attribute.epub (324.7 KB, 14 views)
Falkor is offline   Reply With Quote
Old 07-01-2025, 05:54 PM   #82
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,768
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Falkor View Post
No luck.

I hope this really is a bug and not meant to be a feature..
Nooo, it's a bug; it can't be a feature. Try to apply the methods I described in the one of epubs I uploaded in one of my posts. Maybe Shine 5 doesn't reduce your image because is also configured as cover image (Sigil did all the work for you). If you open the content.opf of your epub, you'll see

Code:
    
<item id="picture.jpg" href="Images/picture.jpg" media-type="image/jpeg" properties="cover-image"/>
The fact that the image has the property "cover-image" can be forcing that Shine 5 doesn't reduce the image. For that reason try with the image in my epub, to see if there the picture is also not reduced.
RbnJrg is offline   Reply With Quote
Old 07-02-2025, 01:36 PM   #83
Falkor
Connoisseur
Falkor began at the beginning.
 
Posts: 89
Karma: 10
Join Date: Dec 2024
Device: Tolino Shine 5
Quote:
Originally Posted by RbnJrg View Post
Nooo, it's a bug; it can't be a feature. Try to apply the methods I described in the one of epubs I uploaded in one of my posts. Maybe Shine 5 doesn't reduce your image because is also configured as cover image (Sigil did all the work for you). If you open the content.opf of your epub, you'll see

Code:
    
<item id="picture.jpg" href="Images/picture.jpg" media-type="image/jpeg" properties="cover-image"/>
The fact that the image has the property "cover-image" can be forcing that Shine 5 doesn't reduce the image. For that reason try with the image in my epub, to see if there the picture is also not reduced.
Nope, it won't scale an image without the "cover-image" property either – interesting how it renders this image in black and white..

Quote:
Nooo, it's a bug; it can't be a feature.
I certainly hope so. But I guess someone could have thought it was a good idea to render all SVGs at a certain size to eliminate all problems with badly authored epubs?
I’ll just treat it like a bug and send a report to them
Attached Thumbnails
Click image for larger version

Name:	screen_004.png
Views:	14
Size:	954.4 KB
ID:	216647   Click image for larger version

Name:	screen_005.png
Views:	17
Size:	952.3 KB
ID:	216648   Click image for larger version

Name:	screen_006.png
Views:	17
Size:	954.6 KB
ID:	216649  
Attached Files
File Type: epub svg-scaling-differnt-versions.epub (3.39 MB, 12 views)
Falkor is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle Epub vs Standard Epub JudahsShadow Library Management 3 05-01-2023 01:55 PM
Linux ePub reader app that best fullfills the ePUB standard celiapgt Reading and Management 12 04-19-2022 12:42 AM
Help revise the Epub standard Nate the great General Discussions 8 04-18-2010 11:29 AM
Standard Reader for Epub bhuvana786 ePub 6 08-21-2009 11:00 AM


All times are GMT -4. The time now is 07:57 AM.


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