I have a folder with a large number of .heic-files transferred from my iPhone that I need to have in JPG for compatibility reasons of another software that can't read HEIC. I've tried various methods and they all create new files that have their own timestamps that do not respect the original photos creation and modification times.
Is there a way to convert HEIC images to JPG that keep timestamps on a mac?
1.8k Views Asked by Stefan Wallin At
2
There are 2 best solutions below
Related Questions in BASH
- When does Bash read heredocs?
- Why `set -o pipefail` gives different output even though the pipe is not failing
- Run an external command within jq to manipulate each values of a particular key
- API key 401 error in .env.development file
- How to "Enable mobile data" on a Huawei E3372 4G USB dongle using a bash script in Windows
- ImageMagick / Bash : pipe ignored(?) when filename format variable used
- MacOS Bash-Script: while read p and echo
- Parse command line arguments and write useful usage message without additional code
- JQ JSON - Values to Array
- why variable substitution is so different?
- postbank_pdf2csv: how to setup with Cygwin in Windows?
- Custom Bash functions & custom statements - Need some advice
- unexpected operator == in square brackets when trying to use gum lib
- How to disable a bash builtin inside a docker container
- Use sed or rename find series of alphabet then replace with with the same alphabet and a dash -
Related Questions in COMMAND-LINE-INTERFACE
- API key 401 error in .env.development file
- NPM Command Line Tool - Command not working
- How to pass the result of a computed property to another component in Vue
- Unexpected argument on sqlcmd command line
- Passing an argument to a file in linux
- Run multiple CLI commands inside ONE child process, but HANDLE each output separately in Node
- Ignoring folders in The Silver Searcher `ag`
- "Unable to load the service index for source https://api.nuget.org/v3/index.json " error when running pac install latest power shell in my local pc
- Values after flag parsed with first argument
- non-ASCII characters in CLI output in powershell script
- Creating aliases for Github Copilot CLI (ghcs, ghce not recognised)
- Setup for a CLI python program
- procedure/alias [a portion of] a somewhat long MySQL command?
- Is there a way to retrieve the version (git commit hash) of a provided tag on the provider side
- CLI can't recognize the "more" commands
Related Questions in JPEG
- Java resized JPEG seems to be invalid format for Facebook?
- Exif and EXIF are two different Chunks with different format
- Could converting a JPG to PNG or PPM be a good idea?
- What is the difference between converting PNG images to JPEG using convertio.co
- How to use OpenGPEG Part 10, JP3D
- How to edit the Samsung Trailer Tag "Timestamp"
- how to convert .SVS to .JPEG with python using tifffile
- I am trying to read an JPEG image, which is of 32 bits pixels, but ImageIO.read(new File(path)).getColorModel() akways returns 24 bits
- Do I lose quality if I decompress a JPEG file into a ppm using libjpeg-turbo C library?
- How to use JP3D in Openjpeg to compress medical images (. ni)
- What is causing the output image of this ffmpeg command to reduce by~95% in file size?
- What's the meaning of the characters in the JPEG binary byte stream opened in python?
- Unable to Display Mapped PNG and JPG Images in Next.js
- Convert black and white Bitmap to Single-Channel JPEG in Android
- Audio to spectrogram image and back to audio
Related Questions in CONVERTERS
- ABAP convert Database char to lowercase
- What is the difference between converting PNG images to JPEG using convertio.co
- Culture info usage while converting string to float type
- Convert Docx To Markdown With Specific Tables
- Convert single column txt file to multi column csv
- convert hatanaka to rinex for multiple files
- How to convert this text contrast function to version for hsl values
- convert PDF to HTML(one paragraph in each <span>tag)
- Glulxe/gblorb game or file editing
- WGET -HTTP request sent, awaiting response... 404 Not Found
- How to perform a binding inside the calling of a converter in WPF XAML?
- Any simple and lightweight tool to transform LaTex to MathML?
- Attempting to build a publication reference converter - cannot get it to function correctly
- How to convert the magnitudes cointained in a nc file and then cut the data according to the data in a shp file with R
- Issue: Custom converters are not triggered during CSV file writing with CsvHelper
Related Questions in HEIF
- Usage of MP4box to editing HEIC/HEIF image
- How to set grid of heif file when convert jpg to heic?
- Converting heic/heif to jpg in react native (or nodejs)
- Is there a way to convert HEIC images to JPG that keep timestamps on a mac?
- Create CGImage from HEIF file
- Can I create image exif data just base on a Bitmap?
- How to set EXIF Orientation value to 1 in HEIF (.heic) image formats using Javascript and return the result as a blob?
- The extension in image url is different from actual format
- How to check if an AVIF still image has been lossless encoded
- Reading byte by byte HEIF/HEIC images XMP metadata
- Using pyheif in Windows: Missing _libheif_cffi module
- AVIF image decoding problem with LIBHEIF and DAV1D decoder
- pyheif affect output in php when running external python code in php
- Why do HEIC/HEIF files have a blank file type in a FileList?
- Core Image ciContext.writeHEIFRepresentation() generates images with diagonal lines when using CICrop filter. How can I prevent this?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I would use the heif-convert cli utility found in libheif to do the converting, but any other implementation would do. Then, given the fact that all files case-sensitively end in exactly
.heic, I would loop over the files in that folder (i.e. open the terminal and cd to the folder that contains the images to be converted). The loop would, for each file convert the heic into a jpg and after the conversion, read the btime from the original file and set that as the creation and modification date using for example SetTime. You could also use touch instead of SetTime but that command takes it's input in another format.Here is a small snippet that I used to solve it.