![]() |
#1 |
Zealot
![]() Posts: 142
Karma: 10
Join Date: Jun 2014
Device: nook
|
How to...make a caption part of an image.
I have some pics that have captions, but I have not found a code that will force the caption to always stay with the image.
Instead, I am making the caption and image one combined image. I have the standard apple software plus adobe acrobat. (no photoshop). I have no other specialty software. Here is my current procedure. 1) open Preview and crop photo to desired appearance. 2) copy and paste into Pages 3) Create text box and place under photo where a caption would be 4) export as pdf 5) open in Acrobat and save as jpg 6) go back to Preview and resize again, because the pdf exports a lot of white border I don't just copy and paste back out of Pages because that is a PNG file and it seems to supply less quality. Am I wrong? Please tell me there is a much faster way. I could not get a text box under the image in Preview. It looks like I can add text on a pic but not below like a caption. My way works, but it is a lot of work for each image. |
![]() |
![]() |
![]() |
#2 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 243
Karma: 359054
Join Date: Nov 2012
Device: default
|
Even the most rudimentary image editing software will allow you
to add text to an existing image, which should reduce the number of steps. For how to add a caption using html/css - take a look at the wiki. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() Posts: 142
Karma: 10
Join Date: Jun 2014
Device: nook
|
I can add text to an image, but as far as I can see, Preview and iPhoto don't permit me to put the caption under the image, just on it.
I looked at the code, and to be honest, for a total novice, I was a bit confused by it. |
![]() |
![]() |
![]() |
#4 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 68
Karma: 786508
Join Date: Aug 2014
Location: Great Lakes
Device: K4PC, PW2, HD7, calibre
|
As to your step 5, saving as jpg. JPEG is a lossy format, it 'throws away' detail to compress the file. You are losing quality right there. Better to save as TIF ,with lossless or no compression, or as PNG which uses lossless compression. Keep that as a master should future changes be needed.
Any working images should be done in TIF or PNG. The final version used in the book can be PNG, other tools can compress without losing quality but will still probably be bigger than JPEG. JPEG could be used but some quality will be lost, other tools can control the amount of compression and thus quality. JPEG is good for pictures, the eye will blend over artifacts from compression so not so noticeable. Line drawings and text will suffer from artifacts created during JPEG compression, better to use PNG for those if you only have an image. Every time you make a change in a JPEG and save it you are reducing the quality as it compresses the file again. 'fraid I don't know Apple so can't suggest other tools. Oh, there is free program, GIMP, with capabilities similar to Photoshop. It is somewhat complicated but I think there is a port for the MAC. |
![]() |
![]() |
![]() |
#5 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,556
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
One suggestion is to STOP USING PAGES! Use Sigil instead.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Zealot
![]() Posts: 142
Karma: 10
Join Date: Jun 2014
Device: nook
|
ok, if i use sigil, how is that helping with the caption issue?
Also, instead of using pages as the epub import, should I just use Text Edit and have Sigil open an html document and do all formatting in Sigil? |
![]() |
![]() |
![]() |
#7 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,556
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Pages is to ePub as Frontpage is to websites. |
|
![]() |
![]() |
![]() |
#8 |
Zealot
![]() Posts: 142
Karma: 10
Join Date: Jun 2014
Device: nook
|
Should I upload the raw HTML directly after OCR or should I proofread and at least make my paragraphs in something like Text Edit or Pages first?
|
![]() |
![]() |
![]() |
#9 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,989
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:
It has a decent dictionary, that allows Multiple, selectable custom dictionaries (allows a book specific list of exceptions to known languages) Text editors don't insert their junk into your code. |
|
![]() |
![]() |
![]() |
#10 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,556
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#11 |
Zealot
![]() Posts: 142
Karma: 10
Join Date: Jun 2014
Device: nook
|
I took your advice and decided to start a fresh project with a blank CSS and try to code everything myself. I am running into a problem. Sigil and iBook look ok, but the Nook and the Kobo aren't recognizing anything. Everything in just plain old <p>. My entire CSS is ignored even though it looks fine in Sigil and on iBook.n My guess is it is something at the top of my code that I usually don't have to mess with. Here is a short chapter and the CSS. Any direction would be greatly appreciated. Also, am I getting the idea correct about paragraph and how to use classes to alter from the basic paragraph?
code first <?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <link href="../Styles/Style0001.css" rel="stylesheet" type="text/css" /> </head> <body> <p class="s1">Primer</p> <div class="stanza"> <p>Here is a book</p> <p>For all girls and boys,</p> <p>I hope it will bring them</p> <p>Many joys.</p> <p>I hope it will teach them</p> <p>To use their eyes.</p> <p>I hope it will make them</p> <p>Very wise.</p> </div> <p class="s2">(To be read to the class by the teacher.)</p> </body> </html> now CSS p{ text-align:justify; font-size: 100%; text-indent: 40px; } .s1{ text-align:center; font-size: 120%; font-weight: bold; } .s2{ font-style:italic; font-size: 85%; } .s3{ font-style: italic; font-size: 85%; text-align: center; } body, div, p, h1, h2, h3, h4 { margin: 0; padding: 0; } .stanza { margin-top: 1em; margin-right: 0; margin-bottom: 1em; margin-left: 2em; text-align: left; .stanza p { padding-left: 2em; text-indent: -2em; } |
![]() |
![]() |
![]() |
#12 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,556
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Your last CSS style has p in it. So you've just overrode your initial p style. So make the last style just .stanza.
|
![]() |
![]() |
![]() |
#13 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 243
Karma: 359054
Join Date: Nov 2012
Device: default
|
Quote:
ETA: in Sigil, under Tools|Validate style sheets with w3c, the following error is listed: 33 .stanza Parse Error .stanza p { padding-left: 2em; text-indent: -2em; } Last edited by DomesticExtremis; 11-26-2014 at 10:23 PM. |
|
![]() |
![]() |
![]() |
#14 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,556
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Code:
.stanza { margin-top: 1em; margin-right: 0; margin-bottom: 1em; margin-left: 2em; text-align: left; .stanza p { padding-left: 2em; text-indent: -2em; } Code:
.stanza { margin-top: 1em; margin-right: 0; margin-bottom: 1em; margin-left: 2em; text-align: left; text-indent: -2em; } |
![]() |
![]() |
![]() |
#15 |
Zealot
![]() Posts: 142
Karma: 10
Join Date: Jun 2014
Device: nook
|
Thank you. I did what you said... that part worked, but now the formatting of the poetry part is not working right. It is making stanzas, but not respecting the last two lines
.stanza { margin-top: 1em; margin-right: 0; margin-bottom: 1em; margin-left: 2em; text-align: left; padding-left: 2em; text-indent: -2em; } Lets simplify. If I have just these few lines of code <div class="stanza"> <p>Awake Miss Goldy could not keep,</p> <p>On Baby’s bed she fell asleep.</p> <p>They found her there when home they came</p> <p>And ate her up. Oh, what a shame!</p> </div> with the new css p{ text-align:justify; font-size: 100%; text-indent: 40px; } .s1{ text-align:center; font-size: 120%; font-weight: bold; } .s2{ font-style:italic; font-size: 85%; } .s3{ font-style: italic; font-size: 85%; text-align: center; } body, div, p, h1, h2, h3, h4 { margin: 0; padding: 0; } .stanza { margin-top: 1em; margin-right: 0; margin-bottom: 1em; margin-left: 2em; text-align: left; padding-left: 2em; text-indent: -2em; } will the <p> inside the <div class="stanza"> be treated as the normal<p> or will they be treated as following the <div>. It appears that they follow the <p>. What am I missing here to make the <p> inside the <div class="stanza"> behave differently? |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
keeping image and caption together | whbenson | ePub | 0 | 08-20-2013 06:19 PM |
How to be sure a full page image+ caption is not split between 2 pages? | silviolorusso | ePub | 9 | 07-12-2013 08:24 PM |
Caption, distance from image | GraciousMe | Sigil | 10 | 10-30-2012 11:12 AM |
L shape image with caption? | LostSock | ePub | 5 | 09-08-2011 07:24 PM |
Center Image and Caption | SamL | ePub | 11 | 08-12-2011 09:27 AM |