Skip to main content
191 votes

Any app on Ubuntu to open and/or convert HEIF pictures (.HEIC, High Efficiency Image File Format)?

In recent Ubuntu versions (>= 18.04): sudo apt-get install libheif-examples And then for file in *.heic; do heif-convert $file ${file/%.heic/.jpg}; done In older Ubuntu or Mint versions, first add ...
kerner1000's user avatar
  • 4,400
152 votes
Accepted

Any app on Ubuntu to open and/or convert HEIF pictures (.HEIC, High Efficiency Image File Format)?

Ubuntu 22.04 quick start install heif-gdk-pixbuf for support in at least eog (Eye of GNOME, GNOME Image Viewer). install heif-thumbnailer for file manager (nautilus, nemo) thumbnails. The available ...
Filbuntu's user avatar
  • 13.6k
42 votes

Any app on Ubuntu to open and/or convert HEIF pictures (.HEIC, High Efficiency Image File Format)?

On Ubuntu 20.04 Focal Fossa: $ sudo apt install heif-gdk-pixbuf heif-thumbnailer gimagereader gpicview then find an HEIC file in the file manager, right click, select Properties then Open With and ...
Wil's user avatar
  • 833
40 votes

Why do some applications have files with no extension?

There's no established mandate in the Linux world that there must be extensions. Filesystems for UNIX-like operating systems do not separate the extension metadata from the rest of the file name. The ...
K7AAY's user avatar
  • 17.5k
25 votes

Mounting Disk Image in Raw format

You can also have the computer automatically scan all the partitions in a dump and automatically prepare all loop devices, as described here. So, lets say you dumped your entire /dev/sda into ...
aggregate1166877's user avatar
23 votes
Accepted

How can I find all video files on my system?

Alternative: search on file: sudo find . -type f -exec file -N -i -- {} + | grep video or if you only want the filenames ... sudo find . -type f -exec file -N -i -- {} + | sed -n 's!: video/[^:]*$!!p'...
Rinzwind's user avatar
  • 306k
20 votes

Native flac .cue splitter

There is an app called Flacon which does exactly this. To install: sudo add-apt-repository ppa:flacon sudo apt-get update sudo apt-get install flacon
Antonis Vlachos's user avatar
20 votes
Accepted

Does Ubuntu carry over Windows filenames (png, exe, ect.) or does it have its own?

These are filename extensions, and many of them will be the same between Windows, Linux and MAC OS. Most executables are not cross-platform, which means you will have to find Linux versions of ...
earthmeLon's user avatar
  • 11.5k
12 votes

How can I find all video files on my system?

I imagine this could be done as a 1-liner but it seemed a bit cumbersome so I created a script for ease of launching and editing and called it findvids.sh This is what worked for me. Note: I may not ...
Elder Geek's user avatar
  • 36.4k
12 votes
Accepted

What is the output of `cat image.png`?

cat will print out the content of the file (zeroes and ones which will be mapped to meaningless characters, because they're not really characters right?) into stdout which by default is your terminal. ...
Ravexina's user avatar
  • 56.6k
10 votes

Convert PDF to Word Using Libreoffice in terminal

I'm using LibreOffice for a long now but still can't understand it how does it work with different files. I'm using the below command to convert PDF to WORD. You may try : libreoffice --infilter=&...
rahim.nagori's user avatar
9 votes

What software should I install for opening .stl files?

You can use F3D for this task. f3d yourFile.stl
Mathieu Westphal's user avatar
9 votes

What is the output of `cat image.png`?

cat simply outputs contents of the file to stdout stream, which in your case happens to be terminal. What happens with the sequence of 0's and 1's that comprise the file is up to the terminal. In case ...
Sergiy Kolodyazhnyy's user avatar
9 votes

FILE extension changing while copying from Ubuntu to windows

It appears that Windows adds the .file extension to any file with an extension it doesn't know/recognise. Understandable, because text/plain is not a file extension but rather a 'content type'. It ...
Koen's user avatar
  • 532
9 votes

Cannot open 90% of recently saved images (webp format)

The 90% of the images that you were unable to open are .webp image files which are becoming more and more common on the web. webP uses the modern VP8 compression format to deliver efficient ...
karel's user avatar
  • 119k
8 votes

How to assign (set) a MIME type to a file?

Question is already answered by @PHPLearner in a comment. However, here is a longer answer. There is no particular command like mime as asked in the question, and no doubt one such command can be ...
C0deDaedalus's user avatar
  • 2,535
8 votes

Is there an application for reading mobi files?

Foliate is one of the best applications for reading epub and Mobi files. You can use your favorite method for obtaining it. PPA sudo add-apt-repository ppa:apandada1/foliate sudo apt update sudo apt ...
Seyed Morteza Mousavi's user avatar
8 votes

How to fake the format of file to an arbitrary format?

Linux does not care about file extension. Changing the file name does NOT let the file command show it is a picture. It will still show it is an ISO. How do you believe to retrieve the ISO from doing ...
Rinzwind's user avatar
  • 306k
8 votes

Any app on Ubuntu to open and/or convert HEIF pictures (.HEIC, High Efficiency Image File Format)?

GIMP 2.10.2 now reads, writes, and edits .HEIC container files, and ImageMagick will convert from .HEIC image container files.
K7AAY's user avatar
  • 17.5k
7 votes

Batch convert ai files to pdf / png etc

A typical .ai file (from version 9 up), saved the normal way (with PDF compatibility) does not need any special conversion (in most cases). For example, if you take a typical .ai file ...as I said, ...
Michael M's user avatar
  • 172
7 votes
Accepted

Copy all files from certain file type extension in script

You should change "$adir/$extType" to "$adir/"$extType otherwise glob expansion won't take place and it looks for a file exactly with the name of *.txt which can not be found and thus it complains ...
Ravexina's user avatar
  • 56.6k
6 votes

How to fake the format of file to an arbitrary format?

This sounds very very much like an A/B problem to me. You want to protect data in such a way people won't suspect that it's sensitive data. The easiest way to hide data is to just encrypt it using ...
Kaz Wolfe's user avatar
  • 34.4k
6 votes
Accepted

How to programatically get program associated with a given file extension?

To sum up the comments above the answer to this problem is a two step process: First determine the MIME type of the file: MIMETYPE=$(xdg-mime query filetype "<your-file-here>") Then get the ...
mark's user avatar
  • 448
6 votes

How can I convert an avif image file to a png file?

Check if a file is avif. If FILE.avif is avif, the results of file FILE.avif should be: FILE.avif: ISO Media, AVIF Image Convert an individual file from avif to png: convert FILE.avif FILE.png ...
karel's user avatar
  • 119k
5 votes

Getting rid of the p7m file extension

Unfortunately, none of these answers worked for me. The attachment showed up in gmail's web interface as smime.p7m, and in Thunderbird (which I can now get rid of since it didn't help) as winmail.dat. ...
rcollins0618's user avatar
5 votes

Splitting an MP4 file

I thought it may be helpful to go beyond the original question of "how do I properly split an mp4 file?" by pointing out how to do it efficiently. For a large video, it may be especially helpful, as I ...
aJIT's user avatar
  • 51
5 votes

Why do some applications have files with no extension?

As K7AAY says, there is no strong connection between the filename and the filetype, although I disagree that files with no extension is likely to be plain text. The way to find out with some degree of ...
j4nd3r53n's user avatar
  • 308
5 votes

Opening winmail.dat attachments

Microsoft Outlook can include attachments in email using a proprietary format. Email clients that do not support the Outlook format see that attachment as a file winmail.dat. You can still decode the ...
vanadium's user avatar
  • 93.7k
5 votes
Accepted

How to find all files that are not of a certain extension?

In bash with extglob set you can use negative matching: shopt -s extglob # often a default, could be already set rm *.!(png) rm !(*keep*|*save*) # everything except files with "keep" or "save" in ...
xenoid's user avatar
  • 5,679

Only top scored, non community-wiki answers of a minimum length are eligible