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 11-16-2011, 11:52 AM   #1
aodor
Member
aodor began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Apr 2011
Device: Kobo
Question MOBI > anything = formulas get magenta background

Hi,

I have a MOBI calculus book which I need to edit. I use Calibre and have converted it to all formats I could possibly edit (HTML, TXT, PDF, RTF, ePub).

The book contains a lot of formulas which after the conversion come out as a magenta square with text in black. At least in the HTML file they are converted to Jpg, and I guess the same happens in RTF conversion.

How can I convert and have white background with black text?

Alberto Odor, MD
aodor is offline   Reply With Quote
Old 11-17-2011, 07:57 AM   #2
Serpentine
Evangelist
Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
Export to epub, edit in Sigil.

Just look around for tags that might be giving it the background colour in the CSS.
Serpentine is offline   Reply With Quote
Advert
Old 11-17-2011, 08:06 AM   #3
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
Quote:
Originally Posted by aodor View Post
...
The book contains a lot of formulas which after the conversion come out as a magenta square with text in black. At least in the HTML file they are converted to Jpg, ...
View the JPGs created in the HTML conversion in some viewer independently of the HTML code. Open them directly in your OS's image viewer or, preferable, in Photoshop or similar editor. If they still have the magenta background when viewed this way the only fix is to edit the JPGs in an image editor (e.g. Photoshop, ...) to alter the color and resave.

If using Photoshop you should resave using the special "Save for Web and Devices..." option rather than the standard "Save as..." method. The former creates a more compact file by omitting extra data that is not needed for ebook use.
dwig is offline   Reply With Quote
Old 11-17-2011, 12:20 PM   #4
aodor
Member
aodor began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Apr 2011
Device: Kobo
Yes, they are magenta in Photoshop or any other imaging app. Resolution is low, so modifying the images in photoshop makes them unreadable.
aodor is offline   Reply With Quote
Old 11-17-2011, 12:39 PM   #5
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
Quote:
Originally Posted by aodor View Post
...Resolution is low, so modifying the images in photoshop makes them unreadable.
Sounds odd. I've never had difficulty altering even low resolution files in PS and loosing readability. In fact, I often can improve the image.
dwig is offline   Reply With Quote
Advert
Old 11-17-2011, 01:05 PM   #6
aodor
Member
aodor began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Apr 2011
Device: Kobo
I would include one of them for you to see, but I don't think we can place attachments here.
aodor is offline   Reply With Quote
Old 11-17-2011, 01:20 PM   #7
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
You can add attachements as long as they are not copyrighted.
itimpi is offline   Reply With Quote
Old 11-17-2011, 01:31 PM   #8
aodor
Member
aodor began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Apr 2011
Device: Kobo
Yes, here are some of them.
Attached Thumbnails
Click image for larger version

Name:	00440.jpg
Views:	221
Size:	3.6 KB
ID:	79097   Click image for larger version

Name:	00441.jpg
Views:	202
Size:	3.0 KB
ID:	79098   Click image for larger version

Name:	00354.jpg
Views:	214
Size:	3.8 KB
ID:	79099   Click image for larger version

Name:	00598.jpg
Views:	219
Size:	3.6 KB
ID:	79100  
Attached Images
 
aodor is offline   Reply With Quote
Old 11-17-2011, 01:31 PM   #9
aodor
Member
aodor began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Apr 2011
Device: Kobo
As you can see some of them converted with white background, but 95% of them are magenta
aodor is offline   Reply With Quote
Old 11-17-2011, 01:46 PM   #10
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,054
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Are these from the Original? Or after Calibre conversion?

The magenta ones appear to be of poor quality (scans?) when viewed in Paintshop pro and the color replacer did not do well with all the artifacts.
theducks is offline   Reply With Quote
Old 11-17-2011, 01:54 PM   #11
Serpentine
Evangelist
Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
Ah my bad, those are images. Looks like a problem with the image lib, might want to try using mobiunpack and see if they are output correctly.
Serpentine is offline   Reply With Quote
Old 11-17-2011, 02:28 PM   #12
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
Yup, something nasty happened during conversion. The images in the MOBI that acquire the magenta background probably have some attribute (e.g. extra alpha channel layer, ...) that calibre's image.lib fails to recognize and properly handle. Massaging these in PS can yield decent images (see attached before & after example), at least no worse than the exported images, but there are so many JPEG compression artifacts that they still aren't very good.
Attached Thumbnails
Click image for larger version

Name:	00354-before.jpg
Views:	232
Size:	3.8 KB
ID:	79104   Click image for larger version

Name:	00354-after.gif
Views:	198
Size:	969 Bytes
ID:	79105  
dwig is offline   Reply With Quote
Old 11-17-2011, 02:30 PM   #13
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,751
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Serpentine View Post
Ah my bad, those are images. Looks like a problem with the image lib, might want to try using mobiunpack and see if they are output correctly.
I agree to use Mobiunpack and get the images out untouched. Then you can use PS to fix the problem with them.
JSWolf is online now   Reply With Quote
Old 11-17-2011, 03:44 PM   #14
aodor
Member
aodor began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Apr 2011
Device: Kobo
They are from a Clibre converted MOBI file.
I'll give Mobiunpak a try.

Thanks.
aodor is offline   Reply With Quote
Old 11-17-2011, 05:58 PM   #15
aodor
Member
aodor began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Apr 2011
Device: Kobo
YES!
Mobiunpack did the trick. All formulas unpacked look good. So, the problem was the Calibre translation.

Thanks you all for your help.

Alberto
aodor is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
tables, math formulas & different fonts in a .mobi file? Zim Kindle Formats 3 10-22-2011 07:10 PM
Math formulas conversion help Sciamano Conversion 10 06-22-2011 06:33 AM
conversion of formulas paola Writer2ePub 5 01-03-2011 03:07 PM
What were the formulas for determining TOC lunixer Calibre 2 08-16-2010 11:14 AM
Pdf background darker than LRF/RTF background LOL2005 Sony Reader 2 10-23-2007 11:00 AM


All times are GMT -4. The time now is 06:56 AM.


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