![]() |
#1 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
gif not displaying on - Solved
Dear all
I used the following code in a book to serve as a scene-break. It is a gif image. Code:
<p class="stroke"> <img src="stroke.gif" alt="Afbeelding"/> </p> Code:
.stroke { text-align: center; margin-top: 0.5em; margin-bottom: 0.5em; display: block; text-indent: 0; } Last edited by JLius; 04-18-2015 at 09:29 AM. Reason: solved |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,762
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
I think your path to the .gif image is wrong; IMHO you should use:
Code:
<p class="stroke"> <img src="../Images/stroke.gif" alt="Afbeelding"/> </p> Regards Rubén |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
Yes, stroke.gif is inside the image folder, but when I insert your code the .gif isn't displayed at all, I just get a "?" where the .gif should be in the calibre preview.
|
![]() |
![]() |
![]() |
#4 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
It must be something in the css, because in other instances in the book where I use
Code:
<img src="some image.jpg" alt="Afbeelding"/> CSS for the other instances is Code:
.photo { text-align: center; text-indent: 0; } |
![]() |
![]() |
![]() |
#5 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,548
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Can you post the image file? There may be something wrong with it.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
When I tried to post the file I got:
stroke.gif: This JPEG image has the incorrect file extension. So yeah, there is indeed something wrong with it. I replaced it with another image file and it works. Thanks Jellby! |
![]() |
![]() |
![]() |
#7 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,548
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Have you tried simply renaming the gif as jpg?
|
![]() |
![]() |
![]() |
#8 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
|
When a file has its correct path, calibre displays it in blue. If it's not blue, the path is wrong.
|
![]() |
![]() |
![]() |
#9 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
@jelby: no, I haven't. I didn't name the .gif, I just got it of the internet. But now I made my own picture with paint.net, works just fine, deleted the .gif.
@Ghitulescu: it was blue in Calibre, problem was in ADE |
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Well, actually it seems the problem was not in ADE. The problem seems a jpg masking as a gif... Calibre is too forgiving sometimes...
|
![]() |
![]() |
![]() |
#11 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
Yes, so it seems.
Is there a way to make the .gif scale along when I increase my font-size on the reader? And is it usefull to add "max-width: 100%" to the CSS? |
![]() |
![]() |
![]() |
#12 | ||
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,548
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#13 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
Okay, will try that, thank you.
|
![]() |
![]() |
![]() |
#14 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
When I use "width: 5em", the .gif is no longer centered.
I tried font-size: 1em instead, but that does not make the .gif rescale. Any other suggestions? |
![]() |
![]() |
![]() |
#15 | |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Quote:
Thanks! |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
BUG in PDF Reader - TeX math displaying | ereus | Onyx Boox | 9 | 02-06-2014 01:55 PM |
Aldiko ebook reader not displaying CSS attributes | ebookn00b | Android Devices | 3 | 01-17-2013 03:20 PM |
Gif images not showing in epub | Amalthia | Conversion | 9 | 06-07-2012 03:43 PM |
Just change the screensaver GIF files? | namati | Kindle Developer's Corner | 3 | 02-25-2012 11:40 PM |
My nook hates my .gif files. | EricDP | ePub | 7 | 09-09-2010 10:19 AM |