Load bad value for src attribute
-
Hi, I use free version of smush and its great! Thanks! But I have a problem with specific images. I use a custom field to upload an image that will be use as placeholder when some post haven’t any thumbnail.
Especially for theses default thumbnail images, I think smush is not loading the right src attribute. Here is what I get when I inspect:<img width="1024" height="682" alt="" src="image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" />And there is a blank where my placeholder image should be.
Can you help?Here is my code to call this image:
$defaultThumbnail = get_field('default_thumbnail', 'options'); echo !empty($defaultThumbnail) ? '<img src="' . $defaultThumbnail['sizes']['large'] . '" width="' . $defaultThumbnail['sizes']['large-width'] . '" height="' . $defaultThumbnail['sizes']['large-height'] . '" alt="' . $defaultThumbnail['alt'] . '" />' : 'null';
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
The topic ‘Load bad value for src attribute’ is closed to new replies.