Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > Non-English Discussions > Deutsches Forum > Erste Hilfe

Notices

Reply
 
Thread Tools Search this Thread
Old 02-20-2012, 01:36 PM   #1
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,196
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
EPub: Bilder mit <svg> einbinden

Hallo,

ich hätte mal eine Frage an die anwesenden Experten:

Was spricht dafür, ein Bild wie folgt einzubinden:
Code:
<svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="none" version="1.1" viewBox="0 0 590 790" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink">
      <image height="790" width="590" xlink:href="../Images/DasBild.jpg"></image>
    </svg>
Ich hab diese Konstruktion schon oft gesehen, dabei ist mir aufgefallen, das das Seitenverhältnis fast nie eingehalten wird (da steht ja auch: preserveAspectRatio="none").

Aber selbst wenn in dem SVG-Tag, was anderes stehen würde, was spricht gegen:
Code:
<p class="center"><img ... /></p>
Also, wer kann die Hintergründe für das vorgehen kurz erläutern. ?
mmat1 is offline   Reply With Quote
Old 02-22-2012, 02:05 PM   #2
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,196
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Selbstgespräche

[QUOTE=mmat1;1973099]
Code:
<svg xmlns="http://www.w3.org/2000/svg"
Inzwischen hab ich rausgefunden, was dieses SVG (das ich in von Callibre erzeugten EPUB's immer wieder finde) eigentlich ist, vielleicht interressiert es ja jemanden:

Es handelt sich um einen speziellen Attributesatz für das Einbinden von Grafiken. Im englischen epub-Forum ist derzeit ein thread mit ein paar weiterführenden Links.

Ich gehe davon aus, das die meisten mobilen Geräte den Krempel sowieso nicht verstehen, warum es denn zum Einsatz kommt, ist mir immer noch ein Rätsel (abgesehen von denkbaren Sonderfällen).

Für mich ist der Fall jedenfalls klar, aus meinen Bücher fliegt das Zeuch 'raus.
mmat1 is offline   Reply With Quote
Advert
Old 02-24-2012, 05:53 AM   #3
calvin
DRM remover
calvin began at the beginning.
 
calvin's Avatar
 
Posts: 84
Karma: 10
Join Date: Dec 2009
Location: North of Germany
Device: Kindle 3, 4 & Touch, iPhone/iPad, Hanvon N516 (OpenInkpot)
in calibre habe ich die Option bei der epub Konvertierung rausgenommen ein "svg cover" einzufügen.

Das hatte z.B. den Effekt das mein damaliges ereader Programm "stanza" auf dem iphone kein Cover angezeigt hat.

Denn Sinn von diesem Konstrukt habe ich auch noch nicht durchschaut ;-)
calvin is offline   Reply With Quote
Old 02-24-2012, 07:58 AM   #4
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,196
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by calvin View Post
in calibre habe ich die Option bei der epub Konvertierung rausgenommen ein "svg cover" einzufügen.
Danke, jetzt hab' ich's (auf der vorletzten Seite...) auch gefunden.
mmat1 is offline   Reply With Quote
Old 02-24-2012, 09:22 AM   #5
brucewelch
1►2pa®a¤d’♫ce
brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.
 
brucewelch's Avatar
 
Posts: 2,625
Karma: 23374904
Join Date: Sep 2010
Device: <div class="div">
Quote:
Originally Posted by mmat1 View Post
Hallo,

ich hätte mal eine Frage an die anwesenden Experten:

Was spricht dafür, ein Bild wie folgt einzubinden:
Code:
<svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="none" version="1.1" viewBox="0 0 590 790" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink">
      <image height="790" width="590" xlink:href="../Images/DasBild.jpg"></image>
    </svg>
Ich hab diese Konstruktion schon oft gesehen, dabei ist mir aufgefallen, das das Seitenverhältnis fast nie eingehalten wird (da steht ja auch: preserveAspectRatio="none").

Und eben das kann in Calibre geändert werden. In "Einstellungen", "Ausgabeoptionen" Häkchen bei "Kein voreingestelltes Cover" und bei "Seitenverhältnis des Umschlagbildes beibehalten". Dann sieht als Ergebnis der svg-Code z.B. so aus:

<svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 544 774" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink">
<image height="774" width="544" xlink:href="../Images/cover.jpeg"></image>
</svg>


preserveAspectRatio also nicht mehr "none", sondern "xMidYMid meet".

Hier gibt es keine Verzerrungen: Hochkant bleibt dann auch in landscape hochkant, der Länge nach reicht das Image aber vom oberen bis unteren Rand des jeweiligen Displays, unabhängig von seiner wahren Größe - was dem ebook-Produzenten die entprechende Skalierung abnimmt.
Die andere Einstellung ist Standard und zeigt bei 5"- und 6"-Displays in Hochkant akzeptable Ergebnisse. Nach meiner Erfahrung können alle echten E-Reader mit den beiden Einstellungen umgehen.

Ansonsten spricht natürlich gar nichts gegen deinen Code, wenn du denn auf Komfort verzichten willst.

Bei einigen Pseudo-E-Readern (Schreiber dieses ist leidgeprüft z.B. von Archos 70b) wird das Cover nur angezeigt, wenn es die exakte Form "cover.jpg" erfüllt; das macht calibre beim Einbinden automatisch.
brucewelch is offline   Reply With Quote
Advert
Old 02-24-2012, 10:12 AM   #6
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,196
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by brucewelch View Post

Und eben das kann in Calibre geändert werden.
Prima , jetzt ist alles klar ! Mir scheint es nur, das die Wenigsten den wirklich hässlichen Kallibre-Default ändern, bzw. auch nur wissen, das es da noch Stellschrauben gibt. (Ich bin da auch schuldig im Sinne der Anklage ....)

Quote:
Ansonsten spricht natürlich gar nichts gegen deinen Code, wenn du denn auf Komfort verzichten willst.
Das ist schon Komfort, nur anders , nämlich platt, simpel und übersichtlich. Ok, ich bekenne, ich pack da immer noch ein
Code:
height="100%"
dazu (bzw. width), je nach dem wie das Bild ausgerichtet ist ...
mmat1 is offline   Reply With Quote
Old 02-25-2012, 07:30 AM   #7
Marc_liest
Early Adopter
Marc_liest ought to be getting tired of karma fortunes by now.Marc_liest ought to be getting tired of karma fortunes by now.Marc_liest ought to be getting tired of karma fortunes by now.Marc_liest ought to be getting tired of karma fortunes by now.Marc_liest ought to be getting tired of karma fortunes by now.Marc_liest ought to be getting tired of karma fortunes by now.Marc_liest ought to be getting tired of karma fortunes by now.Marc_liest ought to be getting tired of karma fortunes by now.Marc_liest ought to be getting tired of karma fortunes by now.Marc_liest ought to be getting tired of karma fortunes by now.Marc_liest ought to be getting tired of karma fortunes by now.
 
Marc_liest's Avatar
 
Posts: 3,161
Karma: 3534948
Join Date: Oct 2008
Location: hier und da
Device: einige
Quote:
Aber selbst wenn in dem SVG-Tag, was anderes stehen würde, was spricht gegen:
Code:
<p class="center"><img ... /></p>
Mit dem passenden Cover ... gar nichts.
Marc_liest is offline   Reply With Quote
Old 02-25-2012, 01:23 PM   #8
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,196
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by Marc_liest View Post
Mit dem passenden Cover ... gar nichts.
Joh, was 'net passt wird passend gemacht, wie bei denm Procuste...
mmat1 is offline   Reply With Quote
Old 02-26-2012, 01:43 PM   #9
brucewelch
1►2pa®a¤d’♫ce
brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.
 
brucewelch's Avatar
 
Posts: 2,625
Karma: 23374904
Join Date: Sep 2010
Device: <div class="div">
Quote:
Originally Posted by mmat1 View Post
Joh, was 'net passt wird passend gemacht, wie bei denm Procuste...
...und eben das kann man sich sparen, wenn man das Cover über Calibre in Form bringen lässt, bei Anwendung von "Seitenverhältnis des Umschlagbildes beibehalten", wie oben beschrieben - das war es, was ich mit "Komfort" meinte.
Aber ich fahre auch lieber 5-Gang-Handschaltung als Automatik; Amerikaner finden so was seltsam.

Jedoch zur Prokrustes-Metapher:
Prokrustes bot Reisenden ein Bett an. War der Wanderer groß, gab er ihm ein kleines Bett und hackte ihm die Füße ab, damit er hineinpasste. War er eher klein, gab er ihm ein großes Bett, zog ihn in die Länge und reckte ihm die Glieder auseinander, indem er sie auf einem Amboss streckte.
Übertrag das bitte mal auf das Phänomen ebook-Cover! Dann kommen doch genau die Verstümmelungen oder Verzerrungen heraus, die du doch gerade nicht haben willst!

Last edited by brucewelch; 02-26-2012 at 01:49 PM.
brucewelch is offline   Reply With Quote
Old 02-26-2012, 02:54 PM   #10
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,196
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by brucewelch View Post
...und eben das kann man sich sparen, wenn man das Cover über Calibre in Form bringen lässt,
Ich hatte das schon verstanden ...
mmat1 is offline   Reply With Quote
Old 02-27-2012, 09:46 AM   #11
brucewelch
1►2pa®a¤d’♫ce
brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.brucewelch ought to be getting tired of karma fortunes by now.
 
brucewelch's Avatar
 
Posts: 2,625
Karma: 23374904
Join Date: Sep 2010
Device: <div class="div">
Quote:
Originally Posted by mmat1 View Post
Ich hatte das schon verstanden ...

... den Eindruck hatte diese Aussage:

Quote:
Das ist schon Komfort, nur anders , nämlich platt, simpel und übersichtlich. Ok, ich bekenne, ich pack da immer noch ein
Code:

height="100%"

dazu (bzw. width), je nach dem wie das Bild ausgerichtet ist ...

... aber nicht gemacht.
brucewelch is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Epub on IPad: SVG-graphics don't show. georg3200 Apple Devices 19 07-10-2013 02:41 PM
resizing of svg logo with text increasing and decreasing in epub ashokbnpal Introduce Yourself 0 07-21-2011 04:26 AM
Illustrated ebooks with epub: using the svg image element dpapathanasiou ePub 0 06-15-2011 04:17 PM
iBooks: No Support for Selection & Copy/Paste Operations of SVG Texts on EPUB reuben ePub 2 09-22-2010 08:06 AM
WePad: Stern mit an Bord, neue Bilder veröffentlicht EbookHype Deutsches Forum 19 04-26-2010 07:10 PM


All times are GMT -4. The time now is 02:33 PM.


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