• Resolved Jek-fdrv

    (@jek-fdrv)


    Can some one provide use case for this plugin with php code please?

    With my big dev experience in wp I each time struggle with images.

    How i can print image in php with (for example) 650px width, dynamic height, so it will support retina and also it will create new image file with needed cropped size?

    For example my client has upload image with 2000 on 3000 pixels.

    So i would like to non retina show image with 650px width and relevant height to original uploaded image ratio. And also it will show double for retina. So 1500 pixels width and relevant height.

    And it will not register new wp image size, as i need this size only for one page.

    how?

    • This topic was modified 2 years, 4 months ago by Jek-fdrv.
    • This topic was modified 2 years, 4 months ago by Jek-fdrv.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Vytis

    (@bvytis)

    Hi @jek-fdrv,

    Thank you for your interest in Optimole.
    We have a WordPress plugin that does all this for you automatically if you’re using WordPress so you can download and install it free of charge (it will remain free if your website doesn’t have more than 5000 monthly visits).

    If you still want to do it manually, this is our guide for custom integration:
    https://docs.optimole.com/article/1307-custom-integration

    Thread Starter Jek-fdrv

    (@jek-fdrv)

    @bvytis Thanks for the answer. But actually there is no answer =)
    I have used plugins by default, but actually it doesnt create the right size, and do not support retina.

    Plugin Support Vytis

    (@bvytis)

    Hi @jek-fdrv,

    Optimole plugin by default supports scaled images (it works only when an image is lazy-loaded) and we also support retina images. Have you enabled these options in the plugin settings?

    Can you share a website’s URL where Optimole is enabled, these options are also enabled and images are not scaled and not served in retina?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Use case?’ is closed to new replies.