Bug 138668 - support image format AVIF import
Summary: support image format AVIF import
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Format-Filters Images
  Show dependency treegraph
 
Reported: 2020-12-05 06:53 UTC by Markus
Modified: 2021-01-11 14:43 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus 2020-12-05 06:53:59 UTC
Description:
Avif is able to serve better image quality at much lower file size.

Steps to Reproduce:
Try loading a avif file.

Actual Results:
It fails (unsupported image format)

Expected Results:
It loads and works like every other image.


Reproducible: Always


User Profile Reset: No



Additional Info:
.
Comment 1 Ming Hua 2020-12-05 08:10:06 UTC
Valid request, setting to NEW.

But according to bug 114533 the developers have been reluntant to add support for new image formats unless there are compelling reasons.  So keep that in mind.
Comment 2 Tomaz Vajngerl 2020-12-05 09:44:43 UTC
AVIF support makes sense, but let's wait for better tooling support and a more wide-spread support in apps.
Comment 3 V Stuart Foote 2020-12-05 15:53:16 UTC
Love to see it.

As a counter point to MPEG's HEIF format, the patent & royalty free FOSS AVIF image format with AV1 compression is gaining acceptance and would be useful in LibreOffice as an additional bitmap image *import* filter. 

If widely accepted, then potentially AVIF could become an additional bitmap image *export* filter (to supplement BMP, GIF, TIFF, JPEG, and PNG) if we can provide an encoder.

Might get there quicker if able to implement complete AV1 encoder in an effort for a "full motion" export format for Impress presentations, and address bug 34959
Comment 4 Heiko Tietze 2020-12-07 11:31:36 UTC
Looks like AVIF is AV1, described here https://en.wikipedia.org/wiki/AV1. Don't see LibreOffice compete with streaming platforms where this codec is used. But no objection UX-wise.
Comment 5 Christian Lohmaier 2020-12-10 15:20:42 UTC
This is "not our bug" - LibreOffice itself doesn't deal with video itself, it rather offloads that to gstreamer (linux) or windows directX/Directshow based codecs and AV-foundation stuff on mac. (and there's an vlc backend as well).

so it is more about installing proper codecs on your mac/win/linux box/relies on those frameworks adding support for it. LibreOffice itself doesn't do audio/video processing.
Comment 6 Markus 2020-12-10 15:39:19 UTC
AVIF is an image format, not video. But its true that its related to AV1.

Similar to HEIF (image) and HEVC (Video) or JPEG (image) and MJPEG (video).
Comment 7 V Stuart Foote 2020-12-10 15:55:28 UTC
(In reply to Christian Lohmaier from comment #5)
> This is "not our bug" - LibreOffice itself doesn't deal with video itself,
> it rather offloads that to gstreamer (linux) or windows directX/Directshow
> based codecs and AV-foundation stuff on mac. (and there's an vlc backend as
> well).
> 
> so it is more about installing proper codecs on your mac/win/linux
> box/relies on those frameworks adding support for it. LibreOffice itself
> doesn't do audio/video processing.

No, we are *not* talking about embedding or generating an Alliance for Open Media AV1 encoded video stream.

Rather AVIF is a static raster bitmap, comparable to GIF, PNG or JPEG. An LO import filter for the format is reasonable, especially as AVIF gains broader acceptance for frame grabs (as AOM AV1 encroaches on the MPEG market).

A LO Bitmap export to AVIF raster would not be a priority. But would expect that if LO were to make any progress on bug 34959 and possibly make use of an AV1 encoder (i.e. libaom) to render presentations to HEIF video, that AVIF bitmap export would come along with the effort.

This is for read only filter import of the AVIF raster image format.
Comment 8 Buovjaga 2020-12-10 16:56:29 UTC
I first learned about the format here and I think it is a good intro: https://jakearchibald.com/2020/avif-has-landed/