I guess step one would be to locate any open-source, javascript-only code sources for converting PNG to JPG.
On Friday, November 8, 2019 at 9:34:58 PM UTC-8, Mal wrote: > > Tiddlywiki Folks, > > I have a non-technical Tiddlywiki user with large (30-40MB) wikis of study > notes containing lots of embedded images. Ideally, I would like to provide > a simple method of optimising these images during the process of dragging > and dropping into the wiki. Are there any good ideas out there for > streamlining this process? > > I know there are various on-line sites for image conversion and > optimisation, like https://image.online-convert.com/convert-to-webp, and > browsers also have some in-built image manipulation capability. > > A plugin that automatically converted images when dropped into tiddlywiki > would be ideal, but I fear this is a bit above my level of browser, > javascript and Tiddlywiki knowledge. > > In the past, I have used a simple bash script to run through the image > files in a node.js implementation of the wikis and convert png images to > jpg. This provides some substantial reductions in Tiddlywiki file sizes. > However, it would be much cleaner to do the optimisation at the point of > adding the images to the wiki, preferably with some options related to > resulting quality and size. > > I would love to read your thoughts on this. > > Regards, > > Mal > > > > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/a8d82e5e-d8df-47b6-9504-8e20fee81901%40googlegroups.com.

