DavidAnson / ConvertTo-Heic

A PowerShell script that converts image files to the efficient HEIC format
MIT License
47 stars 7 forks source link

Cant convert CR2 files #2

Closed Blair0001 closed 4 years ago

Blair0001 commented 4 years ago

I just found your script and i am trying to convert a pile of Canon CR2 Raw files into HEIC files. When I try to feed the script all my files it just says everyone of them is unsupported.

Annotation 2019-11-28 113658

Any help or suggestions would be helpful. I have downloaded and installed both codecs,

DavidAnson commented 4 years ago
  1. What command are you running? (See #1 for context on passing the full path.)
  2. Does it work for any other file types?
Blair0001 commented 4 years ago

Talk about Johnny on the spot!

I ran the following. I ended up naming the script file differently than you have it.

Get-ChildItem "C:\Users\Manda\Pictures\Wades Wedding\Raw" | .\RawToHEIC.ps1

Just tried PNG and failed as well

PS C:\Users\blair\Desktop> .\RawToHEIC.ps1 '.\Annotation 2019-11-28 113658.png'

.\Annotation 2019-11-28 113658.png [Unsupported]

PS C:\Users\blair\Desktop> .\RawToHEIC.ps1 .\3D4A0728.JPG

.\3D4A0728.JPG [Unsupported]

I know I have both required pieces of software installed. Just installed them and purchased the one from the Microsoft store this morning.

From: David Anson notifications@github.com Sent: Thursday, November 28, 2019 11:46 AM To: DavidAnson/ConvertTo-Heic ConvertTo-Heic@noreply.github.com Cc: Blair0001 blair@blair-net.net; Author author@noreply.github.com Subject: Re: [DavidAnson/ConvertTo-Heic] Cant convert CR2 files (#2)

  1. What command are you running? (See #1 https://github.com/DavidAnson/ConvertTo-Heic/issues/1 for context on passing the full path.)
  2. Does it work for any other file types?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DavidAnson/ConvertTo-Heic/issues/2?email_source=notifications&email_token=AN43DWNMIIOMSZTQUUOBJADQV77WTA5CNFSM4JSXKFN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFNGGGQ#issuecomment-559571738 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AN43DWLYEAVUS4Q5P7T3PNDQV77WTANCNFSM4JSXKFNQ . https://github.com/notifications/beacon/AN43DWMEW5VBJK5BABP67DDQV77WTA5CNFSM4JSXKFN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFNGGGQ.gif

DavidAnson commented 4 years ago

Per the other issue, please try passing the full path to the image file. Partial paths are problematic in some cases. (Now that I know, I will try to fix that, but until then full paths are necessary.)

Blair0001 commented 4 years ago

Got it working. Also found out it doesn’t seem to like running powershell as admin as well.

Also is there an possibility of adding in the option of dumping the new files to a different folder path?

From: David Anson notifications@github.com Sent: Thursday, November 28, 2019 12:38 PM To: DavidAnson/ConvertTo-Heic ConvertTo-Heic@noreply.github.com Cc: Blair0001 blair@blair-net.net; Author author@noreply.github.com Subject: Re: [DavidAnson/ConvertTo-Heic] Cant convert CR2 files (#2)

Per the other issue, please try passing the full path to the image file. Partial paths are problematic in some cases. (Now that I know, I will try to fix that, but until then full paths are necessary.)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DavidAnson/ConvertTo-Heic/issues/2?email_source=notifications&email_token=AN43DWPHBL556FV5A24WKWLQWAFYPA5CNFSM4JSXKFN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFNIPHQ#issuecomment-559581086 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AN43DWMZQEPFOIMP7L6KLZTQWAFYPANCNFSM4JSXKFNQ . https://github.com/notifications/beacon/AN43DWPWOEDGLPMU6HBGSATQWAFYPA5CNFSM4JSXKFN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFNIPHQ.gif

DavidAnson commented 4 years ago

Great! Are you OK closing this issue and opening a new one for the option to put into a different directory?

Blair0001 commented 4 years ago

Yeppers!

Sadly I did find that the heic files in windows appeared to be generally larger after about the first 4. Not sure why, but when converting 838 files, the jpgs took up 8GB+ and the HEIC took up 11GB+.

From: David Anson notifications@github.com Sent: Thursday, November 28, 2019 2:43 PM To: DavidAnson/ConvertTo-Heic ConvertTo-Heic@noreply.github.com Cc: Blair0001 blair@blair-net.net; Author author@noreply.github.com Subject: Re: [DavidAnson/ConvertTo-Heic] Cant convert CR2 files (#2)

Great! Are you OK closing this issue and opening a new one for the option to put into a different directory?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DavidAnson/ConvertTo-Heic/issues/2?email_source=notifications&email_token=AN43DWNGFXEBWKPMEGH2NV3QWAUNZA5CNFSM4JSXKFN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFNNCVY#issuecomment-559599959 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AN43DWNJVFUSPBEWPJSCM2TQWAUNZANCNFSM4JSXKFNQ . https://github.com/notifications/beacon/AN43DWKYQLF62CPN2U3SVLLQWAUNZA5CNFSM4JSXKFN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFNNCVY.gif

DavidAnson commented 4 years ago

Closing issue per discussion above.