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
- How do I recursively find and replace only in files named index.php on Linux webserver?
- Delete the extra space after special character in all the lines of text file
- Calling a python function with options from shell script
- bc: prevent "divide by zero" runtime error on multiple operations
- Multiple commands with find and xargs, also accounting for special characters
- How to split a directory into parts without compressing or archiving?
- concat a lot of files to stdout
- Honoring quotes while reading shell arguments from a file
- No laravel sync folders in homestead vagrant on windows
- Grouping commands in curly braces and piping does not preserve variable
- SWI Prolog pass a goal with non-zero arity through the command line arguments
- Evaluating condition of if statement in awk using a second file
- How to customise bash completion to pick only a custom set of commands?
- Bash regular expression execution hangs on long expressions
- Bitwise OR in bash arguments with square brackets
Related Questions in COMMAND-LINE-INTERFACE
- how to run CodeIgniter controller in cli while passing value with $_GET
- Retrieving status from Asterisk using PHP
- Building C# code in VSCode on Mac
- Reading lines from .txt into batch file and handing into command line as arguments?
- C++/CLI/C# Map generic types to template types
- How to fill in a Command Line Interface?
- Doctrine default cli-config.php location
- git CLI commands for stage/unstage hunks/lines like sourcetree
- What is TCL's pattern for translating GUI actions to TCL statements
- how does apache commons-cli parses \\t character
- How to get AWS command line interface to work in cygwin
- CLI to StackExchange Data Explorer
- Laravel Artisan CLI doesn't execute commands
- How to pass a hash as optional argument to -M in command line
- How do I edit a file after I shell to a Docker container?
Related Questions in JPEG
- convert a jpg file to UTF-8 without making it corrupt
- How can I add an image in the drawable/res folder?
- How to perform JPEG compression in Python without writing/reading
- PPT VBA: Capturing Screen Shot inside Shape
- In Ruby, how can I update the avatar / background image file.jpg in a folder?
- Best way to edit a JPG in Photoshop
- IOError for savefig JPG in matplotlib
- Why Bitmap.Save changes image's size?
- Effective JPEG compression for HF content?
- zoom jpeg image on canvas with mousewheel event in javascript
- TIFF 204x98 DPI screen dimensions
- images with invalid jpeg marker
- Android: Embedding a compressed image inside a PDF document
- IJG library or Windows photo viewer DQT generation
- Getting JPEG with android
Related Questions in CONVERTERS
- WPF converter column ItemsSource
- USB to Serial, Port Name Changing Unexpectedly
- PHP HTML to DOC
- find a string in text file and create bytes from The rest of the file c#
- VAADIN: Why I can't set a converter to a ComboBox?
- How to count the number of characters in a line in a csv file
- Python 3.4 tkinter real-time temperature converter
- apache cxf - convert WSDL to Java
- custom boolean converter to set style class
- Byte array to struct
- Convert HTML to PDF and preserve letter spacing
- Clean and convert HTML to XML for BaseX
- Convert long int seconds to double precision floating-point value
- af:convertNumber element removes zero in the end of the value
- Extract binary data stream from audio signal
Related Questions in HEIF
- How to open a HEIF (.heic) image?
- HEIC encoding of CIImage failing with iOS14
- WIC HEIF HEIC image decoding C++
- How to convert HEIC/HEIF image to what ever in ReactJs
- How to set EXIF Orientation value to 1 in HEIF (.heic) image formats using Javascript and return the result as a blob?
- Django Admin add support for HEIC for ImageField
- Is there a way to convert HEIC images to JPG that keep timestamps on a mac?
- Converting heic/heif to jpg in react native (or nodejs)
- Using pyheif in Windows: Missing _libheif_cffi module
- Reading byte by byte HEIF/HEIC images XMP metadata
- How to check if an AVIF still image has been lossless encoded
- The extension in image url is different from actual format
- heif-convert error: JPEG support has not been compiled in
- Create CGImage from HEIF file
- Does OpenCV support .HEIC image format?
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 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.