1

Django CMS Image Compression Problem

over 7 years ago from , User Experience Designer, ABS-CBN Corporation

I'm no developer but we have built a site using django and uploaded images from cms appear on the site pixelated. Would anyone care to share a solution or a good image compression solution? We tried uploading jpeg and png and compressed versions to no success.

3 comments

  • Jonas NockertJonas Nockert, over 7 years ago

    There are several possibilities here so a couple of guesses:

    If the images are severely pixelated, perhaps you're using some kind of image field which creates thumbnails and you're using the thumbnail instead of the image?

    If the images are somewhat pixelated, perhaps you've set the quality too low when resizing? Perhaps you should enable antialiasing?

    If the images are only very slightly pixelated, you might want to compare using imagemagick instead of Pillow or similar. My experience is that imagemagick produces slightly better images when resizing and thumbnailing but I also think the difference has become smaller and smaller over the years. I used to use imagemagick for this reason but I don't anymore.

    Let me know how you process image uploads in Django and I can likely come up with a better answer.

    0 points
  • Henrique Alves, over 7 years ago

    Hey David, this is more a Stack Overflow question but since you've asked here :)

    I'm currently using django-imagekit, it's very simple to implement.

    0 points
    • David Ong, over 7 years ago

      see, i wouldn't even know that there's stack overflow for that given that i'm not a developer, lol, thanks Henrique :)

      0 points