We have a lot of users uploading files. Apparently they are HEIC file from iPhone.
Is there a way to have these display inline for the post? (assuming this isn’t supported right now?)
We have a lot of users uploading files. Apparently they are HEIC file from iPhone.
Is there a way to have these display inline for the post? (assuming this isn’t supported right now?)
Looks like this is a browser limitation:
https://caniuse.com/#feat=heif
heif covers both heif and heic and there’s No support for either in any mainstream browser at present
Ugh. So annoying Apple.
I’d say pr-welcome for allowing users to upload those and converting those from HEIC to JPEG.
Is there an existing pipeline that does something similar that you could point a contributor to?
There is this:
And there are some accompanying specs at upload_creator_spec.rb.
I think this would be a really awesome upgrade and doesn’t look like HEIC is going away…Thanks if someone can figure it out!
To be clear this won’t add HEIC support. Images will be converted using a different lossy method and lose a tiny bit of fidelity in the process.
Any live photos shared as HEIC will become a still image, and while HEIC can support transparency, JPEG does not.
The equivalent JPEG is about twice the size.
Understand. I’m ok with the tradeoffs.
هل هناك أي تقدم في هذا الشأن؟
لا، ليس في الوقت الحالي. هل ترغب في رعاية الميزة أو تقديم طلب سحب (PR)؟
لقد جربت ذلك أمس. أعمل على نظام ماك، وكان الأمر واضحًا نسبيًا على جهازي، لذا قمت بإنشاء طلب السحب هذا: FEATURE: Support converting HEIF images to JPEG by pmusaraj · Pull Request #10079 · discourse/discourse · GitHub ومع ذلك، لا يدعم ImageMagick على أجهزة لينكس تنسيق HEIC افتراضيًا، لذا لا يمكننا دمج هذا الطلب حتى نقوم بتحديث صورة Docker الأساسية لتشمل دعم HEIC.
سأعمل على ذلك الآن، لكن سيستغرق الأمر وقتًا أطول قليلاً ليتم دمجه في النواة.
تم دمج هذه الميزة في النواة وتم تحديث صورة الأساس.
لتمكين دعم HEIC/HEIF، يجب عليك:
heic و/أو heif إلى الامتدادات المسموح بها لعمليات الرفع على موقعكإذا كنت مستضافًا معنا، فيجب أن تكون هذه الميزة متاحة بالفعل (وإذا لم تكن كذلك، أرسل لنا رسالة سريعة).
أما بالنسبة لمستخدمي الاستضافة الذاتية، فيجب عليك تحديث صورة الأساس وإعادة البناء:
cd /var/discourse
git pull
./launcher rebuild app
هل تقصد أن إعداد الموقع مفعل افتراضيًا في استضافتنا؟
لا، لم يتم تمكينه افتراضيًا، ما قصدته فقط هو أن الإعداد الجديد يجب أن يكون موجودًا في استضافتنا.
هل هناك أي سبب يمنع تمكينه افتراضيًا في استضافتنا؟
هل يحتاج الأمر حقًا إلى أن يكون إعدادًا؟
Discourse ليس مدير ملفات؛ إذا أراد الأشخاص مشاركة ملفات HEIC، فيمكنهم ببساطة وضع رابط لها مستضافة في مكان آخر.
لا أرى أن ذلك قد يسبب أي ضرر جسيم.
أظن أنك محق، فالإعداد يضيف عائقًا فقط. من السهل إزالته.
هل يجب أن نضيف أيضًا .heif/.heic إلى إعداد الموقع الافتراضي “الامتدادات المصرح بها” @codinghorror؟
بالتأكيد، ما هو الأسهل بالنسبة لي يعمل!
في идеالية، يجب أن يعمل هذا مباشرة دون أي إعدادات إضافية، أليس كذلك؟
الرفع الآخرات محسّنة بالفعل، بينما يتم تحسين HEIC “بشكل طفيف” فقط لمعالجة مشكلات التوافق مع المتصفحات.