The discussion revolves around enhancing thumbnail generation in Discourse by adding options for format selection and compression control. ariznaf suggests allowing admins to choose between AVIF and JPEG formats for thumbnails, with AVIF being the preferred choice for its strong compression capabilities. They also propose a parameter to adjust the compression degree and mention that browser support for AVIF is generally good, with the exception of Microsoft Edge. merefield highlights the importance of resolution alongside compression, referencing a theme component that allows selecting different thumbnail resolutions. avidseeker inquires about automatically converting uploaded images to AVIF format and asks if Discourse uses ImageMagick for this purpose. They also mention checking if S3 services like Blackblaze offer compression options. tobiaseigen confirms that the requested feature is not currently supported but encourages further discussion on its merits.
כעת, כשאנו תומכים בפורמט AVIF בפורום, חשבתי שיהיה נהדר לאפשר בחירה של פורמט זה עבור התמונות הממוזערות שהפורום מייצר מהתמונות שסופקו.
יהיה נהדר לאפשר בחירה של AVIF עבור תמונות המועלות וזקוקות לדחיסה עקב חריגה מהמגבלות שנקבעו בפורום.
AVIF הוא פורמט מצוין שמתבלט כאשר נדרשת דחיסה חזקה.
דפדפני אינטרנט ודפדפנים ניידים עיקריים תומכים בו (החריג היחיד הוא MS Edge, אך נראה שהגרסה היציבה הבאה תתמוך בו).
עבור פורומים שמרניים וצריכים לעבוד עם דפדפנים ישנים, מתן אפשרות לבחור JPEG לדחיסה יהיה נהדר.
לטעמי, כברירת מחדל, הפורום צריך לשמור על פורמט JPEG המקורי, אך לתת למנהלים את האפשרות לבחור JPEG או AVIF עבור כל התמונות הממוזערות והתמונות שהומרו.
פרמטר שיאפשר שליטה על רמת הדחיסה להמרה אוטומטית יתקבל בברכה רבה.
אם ניתן יהיה לזהות מתי דפדפן אינו תומך ב-AVIF ולהגיש תמונת JPEG בזמן אמת, זה יהיה נהדר, אך זו אינה משימה קלה, ואולי אינה הפילוסופיה של המפתחים.
אני מנצל הזדמנות זו כדי לברך את המפתחים על יישום תמיכה ב-AVIF, בדקתי זאת והיא עובדת מצוין.
How to set Discourse to automatically convert uploaded images (png, jpg) to avif format?
I presume Discourse uses Imagemagick in the backend for this? then it shouldn’t be too difficult to tweak the compression settings for Imagemagick to make it output avif?
@avidseeker מיזגתי את נושא ה-Support האחר שלך לזה, מכיוון שהם קשורים ישירות. מה שאתה מבקש אינו נתמך כעת ב-Discourse ככל הידוע לי, אך כדאי לדון ביתרונות של הוספתו כאן בנושא ה-Feature הזה.