Can't import images into LibreOffice Writer from Android Phone

I am trying to make a Christmas letter with text and pictures. The pictures are texted to me and I proceed to email them to my openSUSE Tumbleweed session as I have done for many years. I save the file as a .jpg file. It fails to open in LibreOffice writer with the error message, “Image Filter Not Found.”

Gimp will not open the file. It gives the error message, JPEG image plug-in coult not open image. Also gives the message “Not aJPEG file: starts with 0x00 0x00”

Gwenview opens the file just fine, but doesn’t let me change its filetype.

It seems that maybe the file is a .heic file type.

Any ideas how to get my pictures into LibreOffice?

First you need to find out what kind of file it really is. Execute the following command in a terminal and replace “image” with the real file name

file image.jpeg

If it is indeed an heic file, you might install the heif-examples package from Packman to get heif-convert, which I’m led to understand can do the conversion.

But use file as hui suggested to determine what the file actually is first - heic is more commonly used by Apple than Android, from what I understand.

For the most part, files are heic files. This is to be expected as the jpeg files come from several different sources.

Gimp can open and convert heic files to different format.

It didn’t work for me. I tried opening a *.heic file and it failed.

The funny thing is that it showed a thumbnail of the file correctly.

Gimp is working here. See my image inside gimp

Try to use an heic file from your iphone if it work the image that you are trying to open is corrupted.

The files came from text entries on my phone. I emailed them to my openSUSE system. Perhaps something corrupted them along the way, but FILE identified them as heic files.

All the way along the download and storage, you seem to do something totally wrong. Why do you save a heic file as jpg? You can’t convert an image file simply by renaming. That is also the reason why some apps like Gimp complain that the file is not an jpg.

But did you check that you have the heif/heic packages installed? On my machine as example following packages are installed:

ich@rennsemmel:~> zypper se -si *heif*
Repository-Daten werden geladen...
Installierte Pakete werden gelesen...

S  | Name                      | Type  | Version            | Arch   | Repository
---+---------------------------+-------+--------------------+--------+-----------
i+ | gdk-pixbuf-loader-libheif | Paket | 1.19.5-1699.4.pm.3 | x86_64 | packman
i  | libheif-aom               | Paket | 1.19.5-1699.4.pm.3 | x86_64 | packman
i+ | libheif-dav1d             | Paket | 1.19.5-1699.4.pm.3 | x86_64 | packman
i+ | libheif-jpeg              | Paket | 1.19.5-1699.4.pm.3 | x86_64 | packman
i+ | libheif-openjpeg          | Paket | 1.19.5-1699.4.pm.3 | x86_64 | packman
i+ | libheif-rav1e             | Paket | 1.19.5-1699.4.pm.3 | x86_64 | packman
i+ | libheif-svtenc            | Paket | 1.19.5-1699.4.pm.3 | x86_64 | packman
i+ | libheif1                  | Paket | 1.19.5-1699.4.pm.3 | x86_64 | packman
ich@rennsemmel:~>

For GIMP, you also need the “gimp-plugin-heif” package from the Packman repositories.

If you’re using the KDE Plasma desktop then, the KDE application “Krita” can handle High Efficiency Image Format (*.heif, *.heic) files and, save them as JPEG files.

  • BTW, Krita can also handle AV1 Image Format (*.avif) files … :smiling_imp:

For Mr. Hui,

The appearance of .heic files is a new feature on my phone. I did it wrong because it was always a .jpg file. Since linux uses file types more than my phone, I added the .jpg suffix without thinking. When things started failing, I decided it was time to start thinking and asking questions.

Thank you all for your help. My Christmas letter can now go out with pretty pictures!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.