> I'm not quite sure what stage things are at: with these commits done, is
> the production now ready for review? or is there still something(s) left
> to be done?
I suppose that's for Vince to decide, but I do not have other changes to
make at this point.
We can also discuss the images first, if you prefer.
> While I'm at it, I see you've got two versions of each illustration
> (*.jp2 and *.png, for the most part) in the `/images` folder; it's not
> clear to me from SEMoS
> <
https://standardebooks.org/manual/1.8.0/single-page#10.5> that there is
> a need for both?
Thanks for having a first look, good observation. I don't know if both
need to be kept in the final repository. For my process so far, it was
useful to keep both:
* The .jp2 images are crops from the original IA scans. The "real"
originals, so to say.
* The .png images are high-resolution, grayscale, cleaned-up versions.
For example, I removed text surrounding the images, cleaned up
imperfections in the scan etc.
From the high-resolution .png images, I generated the cropped,
downsampled, compressed images in src/epub/images/. If that needs to be
redone (e.g., to reduce image size, convert to other formats, etc.) the
high-res .png would be the best source.
If preferred, I can remove the .pngs from the for-review repository and
keep them in my own copy somewhere.
> And again on images, a number of the PNG and JPG files in
> `./src/epub/images/` look like they might be candidates for conversion
> to SVG — but here it would be good to get input from Alex or another
> editor with more experience of images than I have!
That is a tricky question. I did quite extensive experiments with all
sorts of variations, and the current solution seemed to give the best
results in terms of quality and image size. But I'm open to suggestions.
1. The true line drawings (e.g., the diagrams and simple maps) I've all
converted to SVG, as per the SEMoS instructions.
2. The large maps at the end and one inside the book did not work well
as SVG: if the SVG converter doesn't crash, the file size becomes
enormous, the smaller letters stick together and become unreadable.
Grayscale JPG seemed to give the best balance of readability/file
size/quality.
3. For the other images, I've also tried SVG, but that didn't give good
results:
* Many images contain grayscale hatching, which doesn't look well as an
SVG. The shading either becomes fully black, fully white, or full of
artifacts. That takes away a lot of the charm. (Even in the diagrams I
currently have as SVG you can see artifacts in the simple hatching:
white spots, black spots instead of parallel lines.)
* SVG is not smaller. Converting all images to SVG added about 30% to
the size of individual images and to the size of the final epub.
* Black-on-transparent SVG (or PNG) does not work well in dark mode.
Either the images are inverted, which leads to negative images with
black snow and other weirdness, or they should receive a white
background. This background can not be added reliably with CSS (for
example, the Apple Books app does not accept background colors, so the
black-on-transparent SVG images become invisible on a dark background).
So overall, other than for the true line drawings which I did convert to
SVG, I think SVG would 1. reduce image quality, 2. increase file size,
3. cause problems in dark mode; while for these images SVG doesn't
provide clear benefits over PNG.
If not SVG, then the choice is between PNG or JPG.
* I converted all rectangular images to grayscale JPG.
* For the non-rectangular images (e.g., the circle-shaped ones), having
a white rectangle background doesn't look very nice in dark mode. For
these images, I used PNG with a white-on-transparent background to match
the outline of the image. The file size isn't much different from a JPG,
but I think it looks a bit nicer.
In summary: I think the current PNG/SVG/JPG combination is the best
compromise, but I'd be happy to be convinced otherwise.
On 25-09-2024 10:23, David wrote:
> I'm not quite sure what stage things are at: with these commits done, is
> the production now ready for review? or is there still something(s) left
> to be done?
>
> While I'm at it, I see you've got two versions of each illustration
> (*.jp2 and *.png, for the most part) in the `/images` folder; it's not
> clear to me from SEMoS
> <
https://standardebooks.org/manual/1.8.0/single-page#10.5> that there is
> a need for both?
>
> And again on images, a number of the PNG and JPG files in
> `./src/epub/images/` look like they might be candidates for conversion
> to SVG — but here it would be good to get input from Alex or another
> editor with more experience of images than I have!
>
> David / Fife, UK
>
> On Tuesday 24 September 2024 at 23:06:52 UTC+1 Gijs wrote:
>
> On 24-09-2024 00:28, Vince wrote:
> > ...
>
> Thanks for the clarifications.
>
> 1. I removed the edition from the colophon.
> 2. This was indeed already mentioned in the production notes.
> 3. Figure removed.
> 4. Done. Italics added.
> 5. OK. No changes needed then, I think.
> 6. I changed the language to French. It's very weird French, but it's
> probably closer to French than to an undefined language.
>
> Latest version pushed to Github:
>
https://github.com/gvtulder/edward-whymper_scrambles-amongst-the-alps-in-the-years-1860-69 <
https://github.com/gvtulder/edward-whymper_scrambles-amongst-the-alps-in-the-years-1860-69>
>
> Gijs
>
> --
> You received this message because you are subscribed to the Google
> Groups "Standard Ebooks" group.
> To unsubscribe from this group and stop receiving emails from it, send
>
https://groups.google.com/d/msgid/standardebooks/8212bf07-79b3-47b7-88b2-cda76ac6b747n%40googlegroups.com <
https://groups.google.com/d/msgid/standardebooks/8212bf07-79b3-47b7-88b2-cda76ac6b747n%40googlegroups.com?utm_medium=email&utm_source=footer>.