xnconvert and xnview is good tool, i used a lot,
but when i convert heic image to jpg file, xnconvert and xnview can keep all metadata in dest file,
but command line tool nconvert lost all metadata(exif, iptc..), how can i keep metadata when using nconvert,
i need handle a lot of photos , prefered using command line tool in my script,
thanks.
How to keep metadata when heif2jpg using nconvert/xnconvert
Moderator: xnview
-
xnaha2026
- Posts: 3
- Joined: Thu Feb 05, 2026 5:25 am
-
xnview
- Author of XnView
- Posts: 47549
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
-
xnaha2026
- Posts: 3
- Joined: Thu Feb 05, 2026 5:25 am
Re: How to keep metadata when heif2jpg using nconvert/xnconvert
just normal use, cmd: nconvert -quiet -overwrite -opthuff -keep_icc -no_auto_ext -out jpeg -o test.jpg -q 80 -resize longest 3200 test.heic
but I processed many images, metadata all lost when heic2jpg, how to keep metadata when heic2jpg ?
-
xnaha2026
- Posts: 3
- Joined: Thu Feb 05, 2026 5:25 am
Re: How to keep metadata when heif2jpg using nconvert/xnconvert
I uploaded test files (all same), you can choose one to download to check:
https://filebin.net/i20b3b36zd5956wj
https://gofile.io/d/lGJAAt
https://limewire.com/d/WCJtW#cHfQUgPHFL
https://postimg.cc/gallery/Lm8bbW6
and here are command results:
❯ nconvert -quiet -overwrite -opthuff -keep_icc -no_auto_ext -out jpeg -o test.jpg -q 80 -resize longest 3200 test.heic
❯ exiftool -ImageSize -Make -Model -DateTimeOriginal .\test.HEIC
Image Size : 3072x4096
Make : Xiaomi
Camera Model Name : Xiaomi 14
Date/Time Original : 2026:01:01 16:13:08
❯ exiftool -ImageSize -Make -Model -DateTimeOriginal .\test.jpg
Image Size : 2400x3200
❯ nconvert -quiet -no_auto_ext -out jpeg -o test2.jpg -q 80 -resize longest 3200 test.heic
❯ exiftool -ImageSize -Make -Model -DateTimeOriginal .\test2.jpg
Image Size : 2400x3200
-
xnview
- Author of XnView
- Posts: 47549
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France