Support » Plugin: ACF Photo Gallery Field » Percent thumbnail

  • Resolved freshail

    (@freshail)


    Please, can you add percent thumbnail for images with different types(like small image 150×150, big 600×600)?
    Best Regards.

Viewing 1 replies (of 1 total)
  • Plugin Author Navneil Naicker

    (@navzme)

    Hello, theirs no way to reduce by percent. This plugin uses Aqua Resizer to resize the images on the fly. The helper function for this is acf_photo_gallery_resize_image. What you can do is add the following code line of code. If you want to have a image with a specific size then you can use the following code.

    $resized_img_url = aq_resize( $full_image_url, 75, 75, false, true, true);

    Use $resized_img_url in the src of the image.

    See the documentation

    aq_resize( $url, $width, $height, $crop, $single, $upscale )

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.