I have a page where I load 6 images that each have a size of 180 kb, which results in a page size of roughly 1mb. I use ImageGen to resize the images to the correct display size.
Is there some way I can make the quality of the images worse and that way reduce their size, or is there some other trick?
Yes! If you have jpg images (or use the &format=jpg parameter to force the output to be jpg) then you can set the &compression= as well. Play with the compression value until you're happy with the quality/file-size trade-off.
I just figured out the same thing and was about to write that solution to my own question. I didn't know about the compression setting, but my files have a good size now after setting the format to JPEG, will take a look at the compression in any case. They were PNG before that.
Ah, yes... PNG is great for quality since it is lossless. And for lossless the filesize is good. But when you're trying to minimize download size/time then PNG probably isn't the best choice. That's why ImageGen can convert between formats. If you don't specify which format you want you'll get the same as the original image (jpg if it's a jpg source image; png if source is png; etc.)
Image file size
Hi guys,
I have a page where I load 6 images that each have a size of 180 kb, which results in a page size of roughly 1mb. I use ImageGen to resize the images to the correct display size.
Is there some way I can make the quality of the images worse and that way reduce their size, or is there some other trick?
Thanks,
RasB
Yes! If you have jpg images (or use the &format=jpg parameter to force the output to be jpg) then you can set the &compression= as well. Play with the compression value until you're happy with the quality/file-size trade-off.
cheers,
doug.
Hi Doug!
I just figured out the same thing and was about to write that solution to my own question. I didn't know about the compression setting, but my files have a good size now after setting the format to JPEG, will take a look at the compression in any case. They were PNG before that.
Thanks,
RasB
Ah, yes... PNG is great for quality since it is lossless. And for lossless the filesize is good. But when you're trying to minimize download size/time then PNG probably isn't the best choice. That's why ImageGen can convert between formats. If you don't specify which format you want you'll get the same as the original image (jpg if it's a jpg source image; png if source is png; etc.)
cheers,
doug.
is working on a reply...