• assiot

    (@assiot)


    Ever since I switched from wordpress.com to www.ads-software.com the images I’ve uploaded have been overcompressed and look pixelated in places. If I save the images the file size is at least 60% lower than the original file.

    I’ve tried adding the following code to my theme’s functions.php:
    add_filter(‘jpeg_quality’, function($arg){return 100;});
    add_filter(‘wp_editor_set_quality’, function($arg){return 100;});
    I’ve tried disabling all my plugins, I’ve tried switching themes, including to the default one that wordpress.com used. I’ve disabled imagick and gd in my host’s PHP settings. I’ve tried uploading different file types including PNG. uploading images of all sizes. I’ve tried removing the image size limits.

    None of these have done anything to alter the image quality.

    I have no idea what to try next or what could possibly be causing it at this point. Any suggestions are welcome.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Jamie

    (@codente)

    This code definitely works for me

    add_filter('jpeg_quality', function($arg){return 100;});

    Are you sure it’s formatted correctly and is running? Your code here is showing you aren’t using the proper quote marks so maybe it isn’t actually running?

    Also, it could be something your webhost does too so you could ask them if they prevent you from disabling the compression.

    Thread Starter assiot

    (@assiot)

    The proper quote marks? I’m pretty sure that’s the same code.

    I’ve asked if they do server side compression and I said no, and it looks like I’d have to upgrade my plan to use their image optimization so that can’t be it. Even if they stopped me from disabling compression, the wordpress default is 82% if I’m not mistaken. For me however again it’s something like 40%.

    Jamie

    (@codente)

    The quotation marks don’t look like quotation marks in your code. That can happen when copy and pasting here but it wouldn’t hurt to double check that.

    In terms of the higher than default compression: if the site is the exact same as it was on WP.com on the new host and this is happening, it really points to the hosting.

    Who is your webhost?

    • This reply was modified 1 year ago by Jamie.
    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    @assiot

    Moderator note: I see at least one other topic you’ve created for this same question. Please do not create dups! It makes the forum untidy.

    This topic is now closed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t stop wordpress from compressing images by 60%+’ is closed to new replies.