Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • rasb 162 posts 218 karma points
    Feb 02, 2010 @ 14:29
    rasb
    0

    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

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Feb 02, 2010 @ 14:31
    Douglas Robar
    2

    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.

  • rasb 162 posts 218 karma points
    Feb 02, 2010 @ 14:57
    rasb
    0

    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

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Feb 02, 2010 @ 16:06
    Douglas Robar
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft