Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate alt attributes on generated images #104

Closed
sjclark opened this issue Dec 27, 2021 · 1 comment
Closed

Duplicate alt attributes on generated images #104

sjclark opened this issue Dec 27, 2021 · 1 comment

Comments

@sjclark
Copy link

sjclark commented Dec 27, 2021

Having the majority of my images output with multiple alt tags on the front end; example below:

Screen Shot 2021-12-27 at 9 19 48 pm

...
    <img
        alt="Student group smiling in group while studying at table" fit="crop_focal" class="absolute inset-0 object-cover object-center w-full h-full"
        src="/assets/header-images/shutterstock_508251865.jpg"
        alt="shutterstock_508251865.jpg"
         width="4724"          height="3149"                 onload="
            this.onload=null;
            window.responsiveResizeObserver.observe(this);
        "
            >
</picture>
{{ if header_image }}
{{ responsive:header_image glide:width="1000" glide:height="1000"
 alt="{header_image:alt}" fit="crop_focal"
 class="absolute inset-0 object-cover object-center w-full h-full"}}
{{ else }}
data:
  focus: 59-47-1
  alt: 'Student group smiling in group while studying at table'
size: 8094941
last_modified: 1639972190
width: 4724
height: 3149
mime_type: image/jpeg
subheading: 'Helping Domestic Learners & Providers Resolve Disputes'
header_image: header-images/shutterstock_508251865.jpg
Statamic 3.2.26 Pro
Laravel 8.75.0
PHP 8.0.13
aryehraber/statamic-captcha 1.7.0
spatie/statamic-responsive-images 2.8.5
@sjclark
Copy link
Author

sjclark commented Feb 25, 2022

Still having this occur in multiple projects / locations;
Screen Shot 2022-02-25 at 12 50 11 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant