• Resolved khyl123

    (@khyl123)


    Hey,
    thanks for the great plugin. Since the plugin scales all images, it also scales the background image, which makes the background of the website look very blurry on small devices (eg mobile phones). Is there a way to make an exception for the background image, or any other workaround?
    Thanks for your help.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Takis Bouyouris

    (@nevma)

    Hello, my friend,

    Actually, there is a way. It is actually more of a way to debug image delivery through the plugin, but it is perfectly valid to use it for any other purpose as well. You can add such a GET parameter to any image url like this: https://www.ammerseemetall.de/wp-content/uploads/2017/12/000025-e1524421067770.jpg?resolution=320,1

    The value “320,1” means that the image should be delivered as if a device of 320px size and 1dpi had requested it. You can experiment and see which value works for you.

    Also, you can use another GET parameter “?debug=original” like this https://www.ammerseemetall.de/wp-content/uploads/2017/12/000025-e1524421067770.jpg?debug=original, which will always deliver the original size of an image regardless of the device’s which requests it dimensions.

    Let me know if I can help any further!

    Cheers,
    Takis

    Thread Starter khyl123

    (@khyl123)

    Hey,
    thanks for the fast reply. Can i add “?debug=original” in wordpress, or do i have to change the url of the file on the server? Thanks, Dan

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello, again,

    It depends on the way you are including the image to your content. If you are doing it in a theme file, then you should do it right there, at the place where the HTML IMG element is created. But, if you are including it in the WordPress admin, in the TinyMCE or Gutenberg or some other builder or tool, then you should do it in that tool.

    Hope this helps!

    Cheers,
    Takis

    Thread Starter khyl123

    (@khyl123)

    Hey thank you again,
    i uploaded the image via the media tool in wordpress and i use it in a theme, where it is possible to select an image from the uploaded media and use it as a background image. Neither in the media tool or in the theme i see a way to add GET parameters to the URL (or edit the URL in any other way). I use shapely as a theme. Thank you for your help, im almost there 🙂

    Plugin Author Takis Bouyouris

    (@nevma)

    Aaah, if the theme does not give you access to the final image url it uses then perhaps it makes impossible to do what you are trying to do. Does it perhaps show you the image url in a text field where you can edit by hand? That would be a way…

    Thread Starter khyl123

    (@khyl123)

    Yeah it seems like thats the case, i didnt find any way. I will make a post on the website of their theme, will post updates here, in case anybody else has the same problem. Thank you for you help.

    Plugin Author Takis Bouyouris

    (@nevma)

    You are welcome, my friend!

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

The topic ‘Do not scale background image’ is closed to new replies.