![]() |
#76 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,809
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Quote:
That's Great! Thank you for stepping up to the plate to help create the needed new chapters! I truly appreciate your volunteering to help (and that goes for everyone else that has contributed here as well!). |
|
![]() |
![]() |
![]() |
#77 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,809
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Okay I have grabbed all of the new images and chapters and integrated them into the user guide.
Please note: I think since Sigil is cross-platform, we really need to have images from Windows, macOS, and even Linux if we can get some in the user-guide It will give users some idea of how Sigil appears and works cross platform. As for file size, thanks to Ashjuk, Banjo, and odamizu and others the user-guide even with two new chapters and mixed with macOS images is under 5 meg in Size and looks good. The next steps will be to edit other chapters removing out of date references and adding any missing references. Odamizu has already done that for the UserInterface chapter and is working on the Preferences chapter. I have done it for some of the introductory and preface materials. And of course Banjo's two new chapters and the ones I have added should be okay as well. Odamizu, feel free to mix in your own images or use those of Ashjuk (her repository is given in the first post of this thread) but please keep the file names identical so we can simply use AddExisting to overwrite the previous versions. Of course new images of missing material will need new names. All in all the user guide is really being improved! I have uploaded the latest epub version to the first post of this thread under the name: src_updated_20210221_01.epub (first one with todays date). Everyone should feel free to grab it. Volunteers to edit/check other chapters for correctness are very welcome. I will update the repo later when I am back in front of my desktop machine. Thanks! KevinH |
![]() |
![]() |
![]() |
#78 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,809
Karma: 6000000
Join Date: Nov 2009
Device: many
|
@Ashjuk,
One small change in one image please: external_xhtml_editor_setting.png Would you please redo that image with "PageEdit" actually set in the Preferred External XHtml Editor instead of Notepadd++. This image is used in a section on Integrating PageEdit into Sigil. And fwiw some very nice screenshots in PageEdit can be made using "Alice's Adventures in Wonderland.epub" available in the public domain epubs here on site I believe. Thanks! |
![]() |
![]() |
![]() |
#79 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,809
Karma: 6000000
Join Date: Nov 2009
Device: many
|
@Ashjuk,
Unless it is a state secret ... how on earth do you get your image file sizes so small? I used Gimp and rescaled my original macOS screen capture pageedit.png file to 800 by 850 and downsampled it from 144 ppi to 72 ppi and saved it. It was 397kb (from the starting 1.3mb). I then compared it to your pageedit.png that you produced (literally the same width and height and ppi) and it was only 35kb - less than 1/10th my file size!. How is that possible? Your file sizes are truly amazing and they still look great on the screen. |
![]() |
![]() |
![]() |
#80 | |
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,833
Karma: 8006102
Join Date: Mar 2015
Device: Kindle, iOS
|
Quote:
In order that I can learn Sigil better, I just now loaded the original User Guide into Sigil and used AddExisting to replace the old User Interface html file with my new html file. Sigil brought in all the new images with their new filenames automatically. I then used Tools > Delete Unused Media files to delete the old images with the old filenames. It seemed to work successfully. How is keeping the old filenames better? (other than not having to delete the old images) Also, as long as my slow speed is not an issue, I will probably be willing to take on more chapters after I finish Preferences. I just don't want to commit to too many chapters at one time. Better to take it one or two chapters at a time ![]() |
|
![]() |
![]() |
![]() |
#81 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,809
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Hi Odamizu,
New image names means any reuse of the image in other chapters means we now have two images. New image file names also makes tracking the image file binaries back through their history on github next to impossible and it makes it harder to revert to earlier versions on github if needed for any reason. And yes doing 1 or 2 chapters at a time in the future would be wonderful! Hopefully many will not need much text updating given the new images. In fact, the two chapters you chose to start with probably have the biggest text changes! Thanks! Kevin Quote:
|
|
![]() |
![]() |
![]() |
#82 | |
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,833
Karma: 8006102
Join Date: Mar 2015
Device: Kindle, iOS
|
Ahhhh ... gotcha
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#83 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Side Note: See my 2013 ScriptPNG post explaining PNG compression + Indexing. Indexing is fine on very basic images, like: cp-menu.png Here's the one I compressed a few days ago vs. Indexed (145 KB vs. 40.5 KB): The 1st is full RGB + 2nd only has 128 colors. Very little visual difference. But to resize down to a thimble PLUS Indexing? Compare the above 2 with: It went from 684x228 -> 226x91 (8.09 KB).... Sure, the filesize is "much smaller", but:
(Also see my other 2013 posts about JPG/GIF/PNG and lossy conversions: "Tables in an epub?". Especially posts #5+8.) Quote:
1. Image > Mode > Indexed. 2. Generate optimum palette and set the "Maximum number of colors". This will be a number from 2->256. Depending on the image, sometimes these can be Indexed down to very few colors (like the 17 I use on formulas), and you'll visually see very little difference. PS. And "DPI" in PNGs is gibberish. It's only metadata that doesn't mean anything. Changing that number won't save you any filesize. ![]() Last edited by Tex2002ans; 02-22-2021 at 03:16 AM. |
||
![]() |
![]() |
![]() |
#84 | ||
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
|
Quote:
Quote:
![]() I use Photoshop which has the option to save files for the web. Doing this converts them from 24 bit to 8 bit files. 8 bit uses a much reduced colour pallet of 256 colours versus the 16 million of 24 bit. Seeing as the majority of the Sigil files are not complex, and contain very few colours to start with, throwing away all that unused colour information results in a much smaller file size without loosing quality or image size. I do not have a copy of Gimp, as I always use either Photoshop or Corel Photopaint, but you might find that it has that option too. I tend to do most of my work on my Windows desktop machine (where I have Sigil installed) but I do have a MacBook Air which I use really only for browsing the Internet, so if you have a problem with getting some images of Sigil running on a Mac I could try for you. Not sure how it would work as I am very much a novice as far as iOS is concerned. Although saying that it might be better if you get Tex2002ans to do them as he/she appears to be lot more knowledgeable about these things than I am. Last edited by Ashjuk; 02-22-2021 at 05:02 AM. |
||
![]() |
![]() |
![]() |
#85 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
|
Kevin,
I have replaced the following files: external_xhtml_editor_setting.png external-open-name.png extrenal-open-with-name.png They all now reference PageEdit rather than notepad++ |
![]() |
![]() |
![]() |
#86 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
But for documentation, it's better if you take screenshots and:
That will make sure they stay lossless. ![]() The text/icons will still look perfectly crisp, etc. That's the whole reason why PNG is better than JPG. - - - From there, if filesize is still an issue, further optimization can be done. Remember, it's easier to always go DOWN in quality/resolution, but you can't reverse it and go UP. Last edited by Tex2002ans; 02-22-2021 at 05:25 AM. |
|
![]() |
![]() |
![]() |
#87 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,809
Karma: 6000000
Join Date: Nov 2009
Device: many
|
I am quite happy in general with the state of the images now. Ashjuk's version of pageedit.png looked great on my 4k+ retina display, blown up to be bigger than any e-reader display would ever be ... and at 1/10th the file size!
Furthermore Images can always be regenerated if needed (any will probably be regenerated in a few years anyway) since they are all screen shots and file size savings are considerable. So unless someone identifies specific images that they feel need to be made larger, we will go with what we have now. Thanks! |
![]() |
![]() |
![]() |
#88 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,809
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Great! Thank you! I will stay with your earlier versions that used
NotePad++ for the general "open with" images. I really only need PageEdit in the chapter dealing with the Preferred External XHtml Editor as that is where it is most likely to be used, whereas NotePad++ would be useful to a number users in open with Kevin |
![]() |
![]() |
![]() |
#89 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,809
Karma: 6000000
Join Date: Nov 2009
Device: many
|
@Tex2000ans,
As for colour depth, does setting max number of colours to anything other than a power of 2 make sense? Ie. why 17 colours for your equations? I could see space savings from using 16 colours each represented as 4 bit wide fields with two fields packed into a single byte, but non-powers of 2 would seem to drop colour range with no associated space saving. Or am I missing something? BTW, I found a program on github called pngquant2 that seems to be using k-means cluster analysis on colours to determine true number of degrees of freedom represented by the colours actually used to determine the "best" set of palette colours to choose. Is this what Gimp is doing with the Index and Optimize approach you mentioned? Or is that something else? Edit: tried pngquant2 with high compression and Gimp using the Indexing with Optimize colours you pointed out, and Gimp saved about 12k in final size and appears equal visually. Web and e-readers really do benefit in many ways from smaller image file sizes (loading speed, number of files cached for reload, memory footprint, etc) that print versions needing super high quality really do not need to worry about or benefit from ... thus making a quality vs filesize tradeoff important. Even from a network bandwidth for people downloading the epub given how many people that repeatedly. That makes the whole choice of tradeoff quite subjective in many ways. If you feel that some specific images in the user guide had gone too far in that tradeoff, please let us know. Thanks, Kevin Last edited by KevinH; 02-22-2021 at 01:06 PM. |
![]() |
![]() |
![]() |
#90 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
|
Quote:
Looking at the image below I could only see the four colour channels (RGB, R, G, B) so I downloaded Gimp and opened the file using that. As you can see the file as captured does NOT have an Alpha channel to start with, so removing it to reduce the file size was not an option. https://www.mobileread.com/forums/at...1&d=1614009236 https://www.mobileread.com/forums/at...1&d=1614009236 I don't know what I could have done differently to get the file sizes down other that what I have done. I tried the Image/Mode/Indexed in Photoshop, and too be honest, the result was not great. Actually I did not resize any of the smaller files, only those over 1000 pixels, so I don't know why they have ended up smaller. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |