• KempersWebdevelopment

    (@kemperswebdevelopment)


    Hi,

    My thumbnails are getting weird black marks. How can I fix this?

    Images

    What am i doing wrong? They are sliced to a square and filled up with black color.

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

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    When an image is uploaded, it is resized to several registered sizes. Each size can have different settings for how to manage images whose aspect does not match the defined size. See https://developer.wordpress.org/reference/functions/add_image_size/

    You can get those black bars when cropping is disallowed and the upload aspect does not match the defined size. This is only one of several possible explanations. Plugins and themes can alter how uploads are handled and can introduce their own quirks.

    If you cannot tolerate cropping and cannot tolerate black bars, the only solution is to upload images that are already at the correct aspect.

Viewing 1 replies (of 1 total)

The topic ‘Thumbnails getting black spaces.’ is closed to new replies.