02-22-2021, 11:06 AM | #91 | |
Fanatic
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
|
Quote:
As you say some reference to NotePad++ might be a good idea for those looking for a good external html editor. Ashley |
|
02-22-2021, 05:11 PM | #92 |
Sigil Developer
Posts: 7,727
Karma: 5444398
Join Date: Nov 2009
Device: many
|
Okay, pushed everything I have now to the sigil-user-guide repo. I have updated the src_updated_20210222_01.epub that is attached to the first post in this thread.
For future-proofing, I plan to convert this manual to an epub3 with backwards compatible ncx and guide so that all readers can benefit. This will allow me to add richer semantics and role info. But that will only come after we have it updated and released. |
Advert | |
|
02-22-2021, 08:24 PM | #93 | ||||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
For most screenshots, just save it as RGB.
One way to save space on these screenshots is to throw away the Alpha (transparency) layer. This will chop it from a 32-bit image down to 24-bit (~25% filesize savings). Let's take this as one example: cover.png RGBA (261 KB) vs. RGB (205 KB) = ~78% of the size The alpha was useless, so in this case the RGB image is EXACTLY the same. - - - Again, PNG is great because it's LOSSLESS. When you then take something with millions/thousands of colors (RGB) though, and try to squash it into a <256 color box (Indexed), you'll be destroying lots of information. (See more detail below.) Quote:
- insert-file-main.png - tutorial-load-html.png - tutorial-saved-epub.png - [...] See the difference between: I super zoomed into a section, and you can see how: In the original PNG, the icons/text are still perfectly crisp/clean. In the Indexed PNG, it looks like they were saved as a JPG 50. Quote:
Although setting "Maximum number of colors" at 256 won't stop GIMP from using less if possible. Keep that setting on 256 or 128 and you'll probably be fine. The fewer colors, the more repetition the image has = higher compression. BUT, the fewer the colors, the more loss/distortion occurs. Images That Already Have <=256 Colors Indexing this type is a purely lossless conversion. Take icons as an example. Let's say your simple icon has 32 different colors in it: You may have saved it as:
RGBA (411 bytes) vs. RGB (360 bytes) vs. Indexed (271 bytes) Choosing Image > Mode > Indexed and setting "Maximum Number of colors". GIMP will test the image, and see "Oh, this icon only had 34 colors", so it will create a palette that's exactly 34 colors large. How do you see how many colors there are in your Indexed image? You can see this in GIMP by going to: Windows > Dockable Dialogs > Colormap Images That Already Have >256 Colors Indexing this type is LOSSY. There are many different algorithms/dithering methods to try to do this (posterization)... some tools are good, most are awful. The lower # of colors you allow, the more distortion occurs. See the above zoomed in images. And again, when you have simple images, like a menu item. Okay, great, you can REALLY chop down on the colors. But when you have large, complicated, colorful screenshots like the entire Sigil window (icons and all)... trying to cut that down to 256 colors is going to be AWFUL. Quote:
See the 2013 thread, "Sony Reader for PC -- not rendering 16-color png". (You can see the "zebra striping" that occurred in my+GrannyGrump's old pictures.) 17 colors still kept it as a (barely) 8-bit image, so you have no bugs AND you still get large filesize savings compared to a full 256 colors. (Of course, that low # of colors only worked because it was simple shades of black/gray. Colorful/complicated pictures, you probably wouldn't want to go that low. ) Quote:
https://web.archive.org/web/20161208...g-optimization https://web.archive.org/web/20161003...ticles/truepng https://web.archive.org/web/20161003...g-optimization (There were many more, especially comparisons between all the different tools.) I was able to recover this by visiting his website ~2016: https://web.archive.org/web/20160601...ww.css-ig.net/ I think it was around 2018 that he "updated" his site to promote pingo, but he took down his entire article archive in the process. Last edited by Tex2002ans; 02-22-2021 at 09:19 PM. |
||||
02-22-2021, 10:01 PM | #94 |
Sigil Developer
Posts: 7,727
Karma: 5444398
Join Date: Nov 2009
Device: many
|
But can you and most people actually see a difference without "super zooming"? Seriously? I can not. And I really doubt anyone is going to be super zooming in on any of these images in Sigil's user guide. Given how easy it is to recreate these images as screenshots and how often they will need to be updated as gui interfaces change on each platform, if and when desktops go to 8k or 16k resolutions, we just recreate them.
The much much smaller file size with indexing and restricting it to a palette of 256 colours seems to be a very good tradeoff as smaller file sizes pays off in a multitude of ways when loading, and caching images in both an e-reader and in Sigil itself. Especially when differences can only be seen when super zooming in. I see no significant differences on a 4k+ retina display with these images at normal display sizes so the statement that at "nearly all of them" need to be reverted is just not something I can agree with at all. So we must agree to disagree here. Last edited by KevinH; 02-22-2021 at 10:07 PM. |
02-22-2021, 10:25 PM | #95 |
Sigil Developer
Posts: 7,727
Karma: 5444398
Join Date: Nov 2009
Device: many
|
FWIW, I do understand about dropping the alpha channel, cropping, and restricting the number of colours and that it can end up being quite lossy. I understand that keeping high resolution images as originals is a smart idea and not using anything lossy until the final step makes great sense. And all of this makes even greater sense for print.
It is just that image file sizes on the web and in browsers trumps all of that for me as long as at normal display sizes no big differences are noticeable. Again, speed of loading, caching, reload, memory footprint, disk footprint, download size, bandwidth used all are greatly improved. Which is probably why Photoshop has a "save for the web" setting to begin with. If this manual was destined for print, then I would agree with you. As it stands this user-guide will probably be viewed using Sigil and PageEdit in most cases as people play to learn and for that role, I think these images work well. Last edited by KevinH; 02-22-2021 at 10:29 PM. |
Advert | |
|
02-23-2021, 12:06 AM | #96 | |||||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
To read the text in the menus? To read the text in the UI? Look at the "Book.xhtml" text in the "super zoomed in" version. It's as if you've rubbed your eyes in vaseline. Quote:
And when you've converted hundreds of ebooks, and know where to focus (flat colors, edges of text), you can tell the fuzz/artifacts from miles away: https://www.scantips.com/basics9jb.html https://photo.stackexchange.com/ques...one-about-them PNGs are lossless and excel at screenshots + charts/graphs/artificial images. It's the reason why you want to use PNG >> JPG in this case! Quote:
Devices can now:
It would be like purposefully taking screenshots, shrinking them down to 800x600, blurring them... for absolutely no reason. And we are talking 11 MBs... 11 MBs. And 4 MBs of that was taken up by 1 4k + 1 2k image. A single podcast is larger than this. It's giving me flashbacks of the "Inline Greek JPG" + "Tables as Images" days when I first started making books. I am back in Nam! Quote:
You'd have a 1MB JPG with like 3MBs of garbage embedded in it. "Save as Web" then removed the metadata + did some other potential settings (interlacing/progressive). "Save as Web" for PNGs would also turn on higher compression instead of no/low compression + remove the Alpha channel if it's not used, etc. Quote:
Screenshots should stay PNG (RGB) throughout the workflow. Lossless changes should be done (cropping, compression). Never destructive (resizing). - - - IF filesize then becomes an issue, then you go in descending order:
If it's still an issue, then:
If the image is too complicated/ugly using that method, then go back to source and:
If that's not possible, then:
But always keep the original lossless source. Last edited by Tex2002ans; 02-23-2021 at 12:13 AM. |
|||||
02-23-2021, 06:12 AM | #97 | |
Fanatic
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
|
As I said in a previous post there appears to be no Alpha channel to throw away in my images. (See attachment to previous post)
Quote:
I'm not saying you are wrong as you obviously have much more knowledge and experience than I, but following the above suggestions has not worked for me. Edit: I have just tried another compression tool - PngOptimizer - on the largest of the image files (tutorial-main-window.png) and the optimised file was approximately 10% smaller. Whilst there has been some saving in my mind it is not that significant, and less than half of the ~22% you had mentioned. _tutorial-main-window = prior tutorial-main-window = post https://www.mobileread.com/forums/at...1&d=1614079591 Last edited by Ashjuk; 02-23-2021 at 06:29 AM. |
|
02-23-2021, 07:44 AM | #98 |
Sigil Developer
Posts: 7,727
Karma: 5444398
Join Date: Nov 2009
Device: many
|
@Tex2000ans, again I completely disagree. The maximum file size on MR attachments for epubs is 20meg and we were actually coming close with more images to come. File size does matter in any browser setting and engine and that is what Sigil is. You seem to be completely ignoring that in favour or things that typically can’t be seen.
|
02-23-2021, 11:11 PM | #99 |
just an egg
Posts: 1,597
Karma: 4798866
Join Date: Mar 2015
Device: Kindle, iOS
|
I am working on the Preferences chapter and need some help with the following:
Muchas gracias for any assistance with the above |
02-24-2021, 12:55 AM | #100 | |||
Grand Sorcerer
Posts: 5,606
Karma: 23165369
Join Date: Dec 2010
Device: Kindle PW2
|
Thanks for updating the most difficult chapter of the User Guide!
Quote:
Quote:
You can see an explanation of each option, if you hover the mouse cursor over the Detect dropdown box. Quote:
AFAIK, It's used for saved checkpoints. Last edited by Doitsu; 02-24-2021 at 02:10 AM. |
|||
02-24-2021, 04:01 AM | #101 | |
Fanatic
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
|
Quote:
New version is here - https://drive.google.com/drive/folde...E03ldjIG-Cvks7 |
|
02-24-2021, 08:50 AM | #102 |
Sigil Developer
Posts: 7,727
Karma: 5444398
Join Date: Nov 2009
Device: many
|
- The local-devtools is a work folder generated when Preview's Inspector is used.
- The QtWebEngine folder is also a work folder that can cache and store things being used by Preview. Depending on version you may have a local-storage folder inside it as well. Yes the repo folder is created to store Checkpoints and its contents should be managed via the Manage Repos checkpointing tool/menu. Thanks! |
02-24-2021, 08:52 AM | #103 |
Sigil Developer
Posts: 7,727
Karma: 5444398
Join Date: Nov 2009
Device: many
|
Both the local-devtools and QtWebEngine folders can be deleted safely when NOT running Sigil. They will be recreated automatically when needed.
repo and plugins should all be managed by Sigil itself. Users can edit things in plugin-prefs and it provides a place to store things that live on through a plugin being deleted and its new version installed (the update process). Last edited by KevinH; 02-24-2021 at 08:55 AM. |
02-24-2021, 10:09 AM | #104 |
Sigil Developer
Posts: 7,727
Karma: 5444398
Join Date: Nov 2009
Device: many
|
@Ashjuk,
One more change please. The image "preview-window.png" shows Preview showing on *old* version of the Metadata Editor and MetaData Icon in its image which is confusing since neither is in the most recent version of the manual. So would you please recreate that image with Preview showing some other interesting image either from the current user-guide or the public domain Alice's Adventures in Wonderland epub used many tumes in the old user guide. I think you can download that epub here in MR's own repository. Otherwise I can post it as an attachment here. Just let me know. |
02-24-2021, 11:04 AM | #105 |
Fanatic
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
|
@Kevin,
Done. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wanted: Volunteers to Update the Sigil User's Guide | KevinH | Sigil | 55 | 05-18-2018 02:52 AM |
Sigil Improvement Projects for Developers/Volunteers | KevinH | Sigil | 19 | 06-27-2016 06:19 PM |
Sigil and chapters. | p3aul | Sigil | 5 | 11-29-2012 09:23 PM |
Sigil + Adobe Digital Editions + chapters | wkuiper | Sigil | 6 | 11-23-2012 10:58 AM |
Sigil and epub (can I delete empty chapters?) | desaderal | Sigil | 3 | 03-24-2011 07:57 AM |