@rostiger thanks! the tofu was very good by itself and also in the tacos! :)
i processed the photos with imagemagick, doing the cropping, resizing and dithering all in the same command, like:
convert original.jpg -crop 1152x1152+0+400 +repage -resize 320x320 -dither FloydSteinberg -remap colortable.gif converted.png
colortable.gif i took from: https://legacy.imagemagick.org/Usage/quantize/#remap
@chirrolafupa Ah, that's how it works then! I once attempted dithering with imagemagick, but wasn't quite able to get a good result.
I'll add this to my bag of tricks, thanks!
@chirrolafupa Also, just in case you should need it for your website, I wrote a bash script using imagemagick to create image size variations for different screen resolutions:
@rostiger nice! thanks for the tip!
i see you are using the "only shrink larger images" flag (\>) for resizing - i'm curious why you also have the if statement that compares the current with the destination size
@chirrolafupa Hmm, looks like this was a leftover from an earlier version. I removed it and it still works the same way. Good find!
@rostiger no problem! sometimes i use the -colors switch instead of -remap, to let imagemagick choose the color set. e.g:
convert original.jpg -dither FloydSteinberg -colors 8 converted.png
Merveilles is a community project aimed at the establishment of new ways of speaking, seeing and organizing information — A culture that seeks augmentation through the arts of engineering and design. A warm welcome to any like-minded people who feel these ideals resonate with them.