Skip Navigation

[Resolved] Slider images

This support ticket is created 3 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 4 replies, has 2 voices.

Last updated by Puntorosso 3 years, 10 months ago.

Assisted by: Christian Cox.

Author
Posts
#1935553

I have a Slider block view on a single CPT template.
We use a plugin to watermark all uploaded images.
Sometimes I have noticed that while the images in admin contain the watermark, the one displayed on the slider don't.

hidden link
hidden link

What can be the problem?

#1937175

It seems that the plugin does not apply the watermark to all images, because none of these images in the slider have a watermark:
hidden link
hidden link
hidden link
hidden link
hidden link
hidden link
hidden link
hidden link
hidden link
hidden link
hidden link
hidden link
hidden link
hidden link
hidden link
hidden link
hidden link

However, this one does:
hidden link

I'm not sure why some would have a watermark but others do not, but it probably has to do with how the watermark plugin works, and when it applies the watermark. What can you tell me about this post - were the images uploaded in wp-admin when creating this post, was this post created from the front-end of the site using Forms, or was some import process involved? Were all the images uploaded at the same time, or were some images uploaded at different times? Is the problem the same in all posts, or just this one?

#1937177

I did also some research and it seems it could be related with the suffix "-scaled", applied by WordPress to big images.
The slider is dynamic filled with images from a custom field.
I have checked these images, and they are "-scaled" and watermarked, but the slider use the original uploaded pictures.

How can I force the slider to use the scaled versions?

#1938451

Unfortunately there is no feature available to select a different scaled version of the original custom field value. The slider block pulls image URLs directly from the custom field values, and there is no option available for choosing a different resized image. I suspect you could modify the custom field values to use the -scaled image URLs, or you could implement a custom code solution that copies the original values of the custom field and clones them into a separate custom field with the -scaled URL instead of the original image URL.

#1938729

I have decided to simply disable the complete WordPress scaling feature:

add_filter( 'big_image_size_threshold', '__return_false' );

I have anyway Shortpixel installed to compress/resize uploaded images 😉
Thanks.