Tworzenie tekstów alternatywnych dla obrazków w plikach PDF

Informacje o wersji
  • Identyfikator wersji: 290136
  • Utworzono:
  • Autor: TyDraniu
  • Komentarz: WIP
  • Zrecenzowano: Nie
  • Gotowy do tłumaczenia: Nie
Źródło wersji
Podgląd zawartości

Zadbanie o dostępność plików PDF ma zasadnicze znaczenie dla zapewnienia, że wszyscy, w tym osoby korzystające z czytników ekranu, mogą w pełni korzystać z treści. Tekst alternatywny zapewnia kluczowe opisy obrazów, pomagając użytkownikom korzystającym z czytników ekranu i wspierając osoby z niepełnosprawnościami poznawczymi. Niestety, w plikach PDF często brakuje tekstu alternatywnego.

Firefox ułatwia dodawanie alternatywnego tekstu do plików PDF. Możesz to zrobić ręcznie lub skorzystać z naszej eksperymentalnej funkcji opartej na sztucznej inteligencji, aby automatycznie wygenerować tekst alternatywny. Tekst alternatywny można dodać podczas wstawiania obrazu lub później. Jeśli korzystasz z tekstu generowanego przez sztuczną inteligencję, pamiętaj o sprawdzeniu jego poprawności.

Ręczne dodanie tekstu alternatywnego

To include an image in your PDF and manually add alt text for accessibility, follow these steps:

  1. At the top right of the screen, click Add image to PDF 2.
  2. Kliknij + Dodaj obraz to open the file selection window.
  3. Browse and select the image file you want to add to the PDF.
  4. After adding the image, click + Alt text.
  5. In the provided space, either:
    • Write a concise description of the image for screen readers, or
    • Oznacz jako dekoracyjne if it’s only for visual appeal.
  6. Click Save to insert the alt text.
  7. Drag and drop the image to your preferred location within the PDF.
  8. To resize the image, click and drag its borders until it reaches the desired size.
    Add image to PDF

To include an image in your PDF and manually add alt text for accessibility, follow these steps:

Uwaga: These steps are part of an ongoing experiment and may not yet be available to all users. Some users will need to follow alternative steps (see below).
  1. Open a PDF in Firefox. Click the image icon Add image to PDF 2 at the top of the PDF viewer, then click Add image.
    Add image to PDF simplified
  2. Choose an image to add. Once the image is uploaded, you’ll see the alt text editor.
  3. Turn off Firefox android toggle off the toggle next to Create alt text automatically.
  4. Write the alt text from scratch in the text box.
  5. Click Save to add it to your image. If you click Not Now, any changes you made will be discarded.
    Turn off automatic alt text in PDFs
  6. You will see a confirmation message that your alt text was added.
    Alt text added
  7. If the image has no alt text, you will see a button that says Missing alt text. You can click this any time to add alt text to your image, which will make your document more accessible.
  8. If you deselect an image and it is still missing alt text, you will see an alert on the image (this will not appear in print view).
    • To remove this alert, click the image icon at the top of the PDF editor, then click the image, then click the Missing alt text button and follow the steps above.

Instrukcja alternatywna

The above steps are part of an ongoing experiment. Some users may need to follow these alternative steps, to add alt text manually:

  1. At the top right of the screen, click Add image to PDF 2.
  2. Click + Add image to open the file selection window.
  3. Browse and select the image file you want to add to the PDF.
  4. After adding the image, click + Alt text.
  5. In the provided space, either:
    • Write a concise description of the image for screen readers, or
    • Mark the image as decorative if it’s only for visual appeal.
  6. Click Save to insert the alt text.
  7. Drag and drop the image to your preferred location within the PDF.
  8. To resize the image, click and drag its borders until it reaches the desired size.
    Add image to PDF

Automatyczne dodanie tekstu alternatywnego

Informacja: This experimental feature is being introduced gradually. It may not be available to you at this time.

About automatic alt text

Automatic alt text relies on the download of a small language AI model to your device. This allows the model to run directly on your device, so your images and data never leave your control and your privacy is always protected. Importantly, your personal data is never used to train the model; instead, the model is trained on a diverse set of open-source images. This way, you get useful alt text for your PDFs without giving up your privacy. Read more about our small language model, or learn about how we trained the model.

Use the automatic alt text feature

To include an image in your PDF and automatically add alt text for improved accessibility, follow these steps:

  1. Open a PDF in Firefox. Click the image icon Add image to PDF 2 at the top of the PDF viewer, then click Add image.
    Add image to PDF simplified
  2. Choose an image to add. Once the image is uploaded, you’ll see the alt text editor along with some automatically generated alt text based on your image. The generated text may take a few seconds to load the first time you use it.
  3. Review the automatically generated text and rewrite/edit as needed.
  4. Click Save to add the alt text to your image. If you click Not Now, any changes you made will be discarded and the original automatic alt text will be added to the image.
    Automatic alt text
  5. You will see a confirmation message that your alt text was added.
    Automatic alt text added
  6. If instead of Save you click Not Now, you may see a button that says Review alt text. This is because our automatic alt text should receive a human review to ensure quality. You can click Review alt text any time, and click Save after reviewing and editing the alt text as needed.
  7. If you deselect an image and the alt text still needs review, you will see an alert on the image (this will not appear in print view).
    • To remove this alert, click the image icon at the top of the PDF editor, then click the image, then click the Review alt text button and follow the steps above.

Image alt text settings

  1. Click the overflow menu of the PDF viewer, and select Image alt text settings.
    Image alt text settings
  2. From the settings panel, you can turn off automatic alt text and delete the alt text AI model from your device. Please note that having the AI model on your device is required to use automatic alt text.
  3. You can also change the alt text editor settings if you don’t want to see the alt text editor right away after adding an image. If you turn this off, you will still be able to access the alt text editor by clicking the image icon at the top of the PDF viewer, then selecting an image and clicking the alt text button.
    Alt text settings

Tips for writing alt text

Alt text should be a brief summary of the content of an image. Think about what is most important for your readers to understand about the image and how it relates to the rest of your PDF content. For in-depth tips on writing alt text, check out these resources:

Często zadawane pytania

Is the automatic alt text accurate?

Our small language model is still a work in progress, and it will make mistakes, especially when describing complex images. This is why we designed the feature to:

  • Encourage human review so that our users can correct inaccuracies and include any missing details before saving the alt text.
  • Provide guardrails and notify screen reader users up front if alt text was automatically generated. This allows screen reader users to decide if they want to read or skip the description, with the understanding that automatic descriptions may be less accurate than descriptions written by a human.

To report issues with automatically generated content, please create tickets here.

Czy automatyczny tekst alternatywny może generować zbyt opisową lub złożoną treść?

Dobry tekst alternatywny powinien być krótki i używać prostych słów. Dlatego też wytrenowaliśmy nasz model do tworzenia bardzo krótkich opisów, które używają prostego języka w jak największym stopniu.

Czy automatyczny tekst alternatywny może być zbyt niejasny lub pomijać kluczowe szczegóły?

Ponieważ dążymy do krótkich opisów, możliwe jest, że tekst będzie pozbawiony szczegółów. Dlatego zachęcamy do sprawdzania przez człowieka wszystkich automatycznie generowanych tekstów alternatywnych, aby dodał odpowiedni kontekst i szczegóły w razie potrzeby.

Czy automatyczny tekst alternatywny jest prywatny?

Tak. Mały model językowy, który obsługuje tę funkcję, jest pobierany lokalnie na urządzenie. Oznacza to, że zawartość plików PDF i obrazów pozostaje prywatna na urządzeniu i nigdy nie jest wysyłana na zdalny serwer. Zawartość pliku PDF, obrazu i tekstu alternatywnego nigdy nie będzie widoczna dla Mozilli.

Czy jakiekolwiek dane PDF lub obrazu są wykorzystywane do trenowania modelu tekstu alternatywnego?

Nie. Żadne dane PDF lub obrazu nie opuszczają urządzenia, a dane nigdy nie zostaną wykorzystane do trenowania modeli SI.

How do I turn off automatic alt text?

From the alt text editor, you can turn the Automatyczne tworzenie tekstu alternatywnego toggle off to turn off the feature. Or, you can access image alt text settings from the PDF overflow menu and turn off the toggle from there. On this settings screen, you can also delete the model from your device.

How do I know when alt text is automatically generated?

When you see the text This alt text was created automatically below the text box on the alt text editor, you’ll know that the alt text was generated using our model.

Users who are reading the PDF outside of the Firefox editor will experience a disclaimer that comes before the alt text. This is so people reading the alt text with a screen reader or directly on the PDF can be informed that the alt text was not human-generated. For example: “Created automatically: [alt text description will go here]”.

If a user has manually edited the automatic alt text, the disclaimer will disappear.

Czy mogę pominąć dodanie tekstu alternatywnego?

Yes. After adding an image, you can click Not now on the alt text editor. This will discard any changes you have made to the alt text.

If you do this, you may see a button on the image that says Review alt text. This is because our automatic alt text should receive a human review to ensure quality. If the image doesn’t have any alt text, you will see a button that says Missing alt text. You can click this button at any time and click Save after reviewing, adding or editing the alt text as needed.

If you no longer wish to see the alt text editor after adding an image, open image alt text settings from the PDF overflow menu and turn off this setting.

Czy tekst alternatywny pojawia się na wydrukowanym PDF-ie?

Nie, tekst alternatywny pojawia się tylko w cyfrowym pliku PDF, gdzie można go wyświetlić, najeżdżając kursorem na obraz lub odczytać za pomocą czytnika ekranu.

Czy automatyczny tekst alternatywny może generować stronnicze, nieodpowiednie lub obraźliwe treści?

Podjęliśmy kilka kroków w celu zmniejszenia ryzyka, że model alternatywnego tekstu wygeneruje stronnicze, nieodpowiednie lub obraźliwe treści. Obejmują one zaprogramowanie modelu tak, aby nie używał obraźliwego języka ani nie zakładał rasy, pochodzenia etnicznego, religii, płci lub stanu zdrowia osób przedstawionych na obrazie.

Chociaż dobry tekst alternatywny przekazuje znaczenie obrazu i jego treści, mały model językowy, który zasila tę funkcję, nie może zapewnić zniuansowanego znaczenia ani umieścić obrazu w odpowiedniej treści historycznej lub kulturowej tak, jak może to zrobić człowiek. Nasz model został jednak zaprojektowany w celu stworzenia pierwszego szkicu tekstu alternatywnego, który nasi użytkownicy mogą edytować w razie potrzeby, aby prawidłowo przekazać znaczenie obrazu. Zapewniając ten punkt wyjścia i zachęcając do przeglądu przez człowieka, pomagamy użytkownikom szybciej tworzyć tekst alternatywny zgodny z ustalonymi najlepszymi praktykami.

Dowiedz się więcej o tym, jak uwzględniliśmy stronniczość podczas szkolenia modelu tekstu alternatywnego.

Powiązane artykuły