• Resolved kdesmond22

    (@kdesmond22)


    I was wondering if Master Slider uses any sort of jpeg compression, and if so, can I turn it off?

    I added a line of code to my theme’s functions.php file:

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

    This seemed to stop compression in the media library. The images online, using Master Slider, are still really suffering however. Some examples of the compression are quite gruesome.

    If there is no way of turning it off in the plugin, is there a similar line of code I could put into a file like master-slider/includes/msp-functions.php ?

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kdesmond22

    (@kdesmond22)

    example

    The image on the left is the image in the media library, while the one on the right is the image displayed online through Master Slider. It’s a crop of a screen grab, at 100%. Both images were 800px x 800px.

    • This reply was modified 9 years ago by kdesmond22.
    • This reply was modified 9 years ago by kdesmond22.
    Plugin Contributor averta support

    (@averta_support)

    Hi,

    If the picture you have mentioned is from the slider you have sent on the other topic, Master Slider does not resize them. You have set them fit and the size of the picture is not changed.

    Please make sure this option is disable:
    Master Slider -> Slider Settings -> General Settings -> Automatically crop and resize slider images based on the size above

    Please let me know the result.

    Best,
    Averta

    Thread Starter kdesmond22

    (@kdesmond22)

    Hello,

    Thanks for writing back, I appreciate it.

    The settings above are what I have been using, but it is good to know this is the correct way of doing it. I should mentioned I’m also using a ‘Boxed Layout’ with a Slider Width of 1024px x 800px

    With that said, I sent up a new slider and used multiple copies of the same image with different settings. I wanted to see if I could trace the issue. It appeared to be related to:

    Slides -> Background -> Fillmode

    I had previously had it set on ‘Fit’, but changed it to ‘Center’ and that made a total difference. My guess as to why this effected that particular image, is because it’s dimensions were 800px x 801px. That spare pixel on the height of the image, combined with the ‘Fit’ Fillmode, caused the image to get distorted.

    I think I have to be more careful in formatting images on my end. If I choose a Boxed Layout with a Slider Width of 1024px x 800px, I really have to make sure the images fit the dimensions.

    Thanks again for your help.

    Plugin Contributor averta support

    (@averta_support)

    Hi,

    Anytime.

    Yes, it is better to consider the size of your images according the slider size.

    If I could be of any further assistance, please let me know.

    Best,
    Averta

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

The topic ‘Master Slider and jpeg compression’ is closed to new replies.