ما هي أفضل طريقة لإضافة أوصاف الصور؟

We have a practice of always adding image descriptions in order to make Discourse accessible to people who use screen readers. What are some best ways to support adding image descriptions?

For example, is it possible for help text to show up that tells people to add an image description?

“You’ve added an image! Please add an image description before you create the topic.”

And, how do we add alt-text?

More on image descriptions

https://livingwithdisability.tumblr.com/post/124066767358/all-about-image-descriptions
https://www.perkinselearning.org/technology/blog/how-write-alt-text-and-image-descriptions-visually-impaired

3 إعجابات

Good question… I’ve wondered about this myself. It appears that the filename is used to create a description for the image. Then after uploading, you can tweak it in the markdown. When viewing a post with an image, you can mouse over it or click on it to look at the image bigger, and it includes the description at bottom. But I don’t know how that description works in screen readers.

If this can work, then for communities where this is especially important you can develop a culture around improving these descriptions, and moderators can also keep an eye out and edit posts to improve descriptions or send PMs to educate users.

![Irish Stout after a week in the fermenter, ready for pouring into bottles|375x500](upload://rW0hzxtwAluwFC6TAY07KT7J8IK.jpeg) 

4 إعجابات

I’d like to bump this.

@codinghorror is there a place to make specific requests for technical improvements here? Requiring users to rename files or supply markup is simply a non-starter. Those techniques are completely non-discoverable, but even if they weren’t, are also a bigger hurdle than most users will climb. Adding alt text need to be obvious, simple, and (critically) part of the normal process for uploading images, so that users who rely on assistive technologies can participate. IMO the best solution would be to have a pop-up on image upload that asks for descriptive text to be supplied. And at least for our forum I would even like a configuration to make supplying non-empty text mandatory.

7 إعجابات

OK, I think you’d need a plugin for that, perhaps start in marketplace ?

@codinghorror I meant to convey that accessibility needs to be a first-class concern that is built directly in to Discourse, not bolted on as an afterthought. (Apart from that, after a recent very bad experience with a non-official plugin and a botched upgrade, we only install official plugins).

إعجاب واحد (1)

pop-ups rarely improve usability, so I am not sure I agree with that.

At the moment when pasting from clipboard we do this:

A theme component could be built (no need for a plugin here)

  • That adds a big red popup
  • That highlights the word image after upload
  • That introduces an interstitial page.

I suggest starting with a theme component here prior to considering any core changes.

4 إعجابات

Could you point me to a theme component that has these elements? I’d like to play around with one so that I can perhaps sketch out what an alt text / image description theme component workflow would be like.

I do think a plug-in like how events works would be best though, where you insert an image and a form opens up where you type in the alt text and the image description. Then when you hit submit the image is automatically properly formatted.

I suggest starting with a theme component here prior to considering any core changes.

Sorry for the delayed reply. I have always regarded Discourse development as both thoughtful and thorough, and my perception from other threads as also led me to believe that accessibility is a priority.

Which is why I am frankly struggling to understand the reluctance here. I would describe the current situation for users as “nearly impossible to add, even if they want to / remember to” and the situation for admins as “completely impossible to remind / encourage”. Making alt-tags simpler and easier seems like incredibly low-hanging fruit that would benefit accessibility on every Discourse instance. It should be built-in, everywhere. $0.02

3 إعجابات

You could certainly build a blocking interstitial which prevents posting… I think you could do this with watched words – since we know the default image description is equal to the filename?

![super_breakout_1680x1050|690x431](upload://kVEmM01Hth0lkki06JdIsR4do5P.jpeg)

إعجاب واحد (1)

قد يكون هذا هدفًا مثيرًا للاهتمام لوضع العلامات التلقائية بالذكاء الاصطناعي.

IMO هذه الإعدادات ستكون موجودة

  • المطالبة بالأوصاف عند تحميل الصور (افتراضي قيد التشغيل)
  • محاولة ملء أوصاف الصور تلقائيًا باستخدام خدمة الذكاء الاصطناعي (افتراضي متوقف)

شخصيًا، لن أرغب في إرسال تسميات AU تلقائية دون مراجعة بشرية.

بقول كل هذا، بعد ثلاث سنوات الآن، أنا متشكك إلى حد ما في أن Discourse ستبني وظائف لتبسيط خيارات إمكانية الوصول لتحميل الصور.

لسنا منتدى يعتمد بشكل كبير على الصور، ولكن سنحت لي الفرصة لنشر صورة، واضطررت للذهاب إلى Meta للبحث عن وظيفة النص البديل للتأكد من كيفية عملها. إنها ليست واضحة جدًا.

لقد تم رفع وعيي من خلال التركيز المتزايد على إمكانية الوصول في تطوير الويب بشكل عام اليوم. أود أن أرى Discourse يطالب بالنص البديل عند التحميل، ويوفر خيارًا لجعله إلزاميًا.

إعجاب واحد (1)

متعلق بشكل طفيف، ديسكورس AI الآن يطالب المستخدمين مرة واحدة عند اكتشاف صور بدون نص بديل في منشوراتهم لتمكين تسميات تلقائية للصور تم إنشاؤها بواسطة الذكاء الاصطناعي.

هذا شيء ما، ولكني ما زلت أود رؤية مطالبة للمؤلفين في المنتديات غير المُمكّنة للذكاء الاصطناعي.

(ليس للتقليل من شأن Discourse AI، ولكن حتى الآن لست من محبي النصوص البديلة للذكاء الاصطناعي بشكل عام، حيث رأيت أنها تقدم محتوى مبتذل و/أو غير دقيق يتجاهل السياق. قد يكون للذكاء الاصطناعي مكان في أشياء مثل العمليات المجمعة على قوائم كبيرة. ولكن في مقال أو محادثة، أفضل أن يقوم المؤلف بإنشاء نص بديل يعبر عن النقطة السردية للصورة، وليس مجرد وصف مرئي.)

إعجاب واحد (1)

أفضل طريقة للمضي قدمًا هي أن يقوم المجتمع بتطوير مكون سمة يقوم بذلك. إذا لاقى استحسانًا، فقد يتم اعتماده في النهاية في النواة.

لماذا؟ سهولة الوصول، على وجه التحديد، هي مجال يجب أن تتفوق فيه Discourse.

إعجاب واحد (1)

يوفر Discourse طريقة لإضافة أوصاف للصور. مجرد أنك لا تحب التنفيذ لا يعني أننا لسنا روادًا! :wink:

إذا كنت ترغب في تنفيذ مختلف، فأنت مرحب بتنفيذه كمكون سمة أو دفع لشخص ما في Marketplace للقيام بذلك. إذا كان يعمل بشكل أفضل مما لدينا الآن، فسيتم إضافته إلى النواة. هذه هي الطريقة التي ينتهي بها العديد من التحسينات في النواة.

ومع ذلك، كجزء من العمل الجديد على المؤلف، سيتعين علينا إعادة النظر في هذه المنطقة من واجهة المستخدم. إنها في القائمة.

إعجاب واحد (1)

هل تقصد إضافة تذييل أو شيء أقرب إلى ALT؟ لقد وصلت إلى هنا لأنني أبحث عن الطريقة المتوقعة حاليًا لإضافة أوصاف للصور، خاصة للأشخاص المكفوفين، إذا كان هناك أي منها.

إعجاب واحد (1)

السمتان alt هو وصف الصورة، والذي يمكنك إضافته داخل صيغة ترميز الصور، أو مباشرة من الصورة المصغرة في معاينة المنشور :slight_smile:

مثال على ترميز Markdown:

![الصورة عبارة عن منشور مدونة Discord AI بقلم مدير منتج يناقش الرد الآلي بالذكاء الاصطناعي، وهي ميزة تستخدم الذكاء الاصطناعي للرد بذكاء على استفسارات الدعم، وتتطلب أتمتة Discourse ومكونات إضافية للذكاء الاصطناعي للتشغيل. (تم التقاطها بواسطة الذكاء الاصطناعي)|230x500](upload://6rMT7zREgcFUdeLKbbXXSqOUZLo.jpeg)

3 إعجابات