Darrinschwartz wrote:
The image size of converted jpg are too big. Anyway to reduce the file size? It is not a good option to be inserted into a web page.
Too big in what way? JPEG files are a relic of another age. They use extreme, lossy compression to have a file size that is as small as possible so that the web looks good on your 9600 baud dial-up modem.
Fast forward to 2023 and what's the point? The CSS files alone on each web page are bigger than the images from 1997. The javascript files are even worse.
And JPEG files are only small on disk or during transfer. Once you open them, they will take up the same amount of RAM as any other image of the same dimensions. Luckily, JPEG files are limited to 65536 pixels or lines in a dimension. I have run into the limit in the past. The JPEG file size was tiny, but I didn't have enough RAM to open the image.
These days, PNGs are a better choice for web images because they support transparency. But you will want to reduce the size of the image to something reasonable. At one point, I had posted a tip on how to use the built-in "sips" tool to convert these files. But the Quick Action is much easier. However, if you want to also resize the dimensions of the images, then you might want to look into using "sips" on the command line.