Skip Navigation

[Resolved] Images have black bars on them

This support ticket is created 6 years, 3 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 1 reply, has 2 voices.

Last updated by Christian Cox 6 years, 3 months ago.

Assisted by: Christian Cox.

Author
Posts
#1136522

I upgraded the Types plugin today and also installed an SSL, so I'm not sure which change has caused the issue.

Link to a page where the issue can be seen: hidden link

These images before had white padding around them, but now they have black around them where the padding was before.

Here's how I'm calling the images in the view: [types field='photos' size='medium' align='none' resize='pad' index="0" alt='%%ALT%%'][/types]

The versions of the images that are showing with the black bars are the wpcf_300x300-pad-0.jpg versions - hidden link. The originals are still fine: hidden link.

#1136948

Hi, please add an explicit padding_color attribute to these image fields, like this:

[types field='photos' size='medium' align='none' resize='pad' index="0" alt='%%ALT%%' padding_color='#FFFFFF'][/types]

If this does not solve the problem, please go to Toolset > Settings > Custom Content and clear image caches. Clear caches in W3 Total cache as well, then test again. If the problem is not resolved, I'll need to take a closer look.