Convert and compress batch of images - problems with ShortPixel and Tinify

I’ve made it a few steps further.

At this moment the ShortPixel route isn’t working out. Too many “Image scheduled for processing” messages.

Returned back to Tinify, and was finaly able to route the second Tinify module converting the optimized image to AVIF, where my problem was in getting the optimized image from the first Tinify module:

This returned a binary, as was already discussed in this topic. At this moment I’m able to convert this image to a file on Google Drive or Dropbox, using the “body” data to create a file.

The problem I’m having now is to retrieve the clean image link from either Drive or Dropbox. It’s not there in the output, and fiddling with the filename, removing the last part of the string etc. is just not working out. I only got it to work with the thumbnail image so far, and a larger image suddenly became a .jpeg out of nothing in Webflow…. I’ve been looking on the forum for help around this, but no clean solution yet, so anyone with advice would be welcome. Other modules that create online files from binaries are most welcome too of course.

In the meantime will check the ShortPixel route again.