• Hi there, I got an issue with the image resolution. Different speedpages were telling me that my images are too big. I took a look in the console and saw that the original image is loaded and not the cropped one. I have made a screenshot of the console ( https://paste.pics/8ARS9 ). There you can see that the image should be 350px width by 240px height but the image which is loaded is the original one (1747px by 1383px).

    Can you please help me with this issue.

    Regards,

    Mark Kruip

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author joppuyo

    (@joppuyo)

    Hey,

    Right now this plugin is designed to be used with aspect ratio like 16:9 instead of a pixel resolution like 350×240. I will probably add support for pixel size in the future.

    In the meantime, I would suggest you add a custom size using function

    add_action('init', function() {
        add_image_size('myproject-350', 350);
    });

    and then in your template

    echo wp_get_attachment_image(get_field('my_image_field'), 'myproject-350');

    Plugin Author joppuyo

    (@joppuyo)

    Hey Mark

    An option to use a pixel size instead aspect ratio has been added in plugin version v3.2.0.

    You could test it out and tell me if it works like you expect.

    Thanks!

    Thread Starter mkruip05

    (@mkruip05)

    Hi there,

    I have tested it and this works perfect for me! Big thanks!

    Just a small question, how should the plugin work with the aspect ratio? In my eyes that function doesn’t do anything or I am wrong? Would like to hear from you.

    Regards,

    Mark

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not the right resolution’ is closed to new replies.