The problem of creating preview images for a personalized product is very popular. Sometimes it is not a problem to implement it - for example, when a surface of a product is flat (like a paper sheet). In this case, to create a preview, we just combine a product image with a custom image or design. However, most objects of the physical world have more complex shape.
Today I tried to help to one of our customers and while I preparing my answer I came to a question - may I expect to have some specific compression ratio if I set some JPEG quality value? I made a small study to figure it out.
Today I encountered a task - I needed to resize and apply auto level on a batch of images. In the past, I would just open Gimp or Photoshop and process those images one by one (fortunately I never had to do it on more than a couple of dozens of images). However this time I had way too many files and I thought to myself - we are doing a top-notch imaging software, why not to use it to make my life easier?