Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Parameter - -set #2

Open
swilsy opened this issue May 10, 2021 · 5 comments
Open

Invalid Parameter - -set #2

swilsy opened this issue May 10, 2021 · 5 comments

Comments

@swilsy
Copy link

swilsy commented May 10, 2021

  • heic-to-jpg version: 0.1.8
  • Python version: 3.9.1
  • Operating System: Windows 10

Description

I am getting the error Invalid Parameter - -set when running heic-to-jpg on Windows 10.

What I Did

In Powershell

heic-to-jpg --src .\conversion_dir\image.heic --keep

I also tried in Gitbash. Same result.

I've tried with --keep, without --keep, using -s rather than --src, moving into the directory and just passing the file name. Same issue.

I am utilizing a Python virtual environment. I installed the heic-to-jpg package using pip.

@creimers
Copy link
Owner

creimers commented Jun 4, 2021

I'm sorry, I have never ever tried this on Windows. I'll try to come by a Windows computer and give it a go.

@arai-wa
Copy link

arai-wa commented Jan 8, 2022

Cause of the problem is shown in below:
https://stackoverflow.com/questions/3060205/error-invalid-parameter-fom-imagemagick-convert-on-windows/54106484

Invalid Parameter - -set was output by C:\Windows\System32\convert.exe not ImageMagick.

C:\Users\foo>where convert
C:\Program Files\ImageMagick-7.1.0-Q16-HDRI\convert.exe
C:\Windows\System32\convert.exe

I found a workaround.

convert of ImageMagick equals to magick convert.
So I modified https://github.com/creimers/heic-to-jpg/blob/v0.1.8/heic_to_jpg/cli.py#L45 and https://github.com/creimers/heic-to-jpg/blob/v0.1.8/heic_to_jpg/cli.py#L69 to

        command = [
            "magick",
            "convert",

and it works.

I don't make a pull request because I don't have macOS to test this modification.

@landa125
Copy link

landa125 commented Sep 2, 2022

Hello, I'm having a similar issue as @swilsy did but I am running my commands via bash.

heic-to-jpg version: 0.1.8
Python version: 3.9.1
Operating System: Windows 10
Git Bash

Description
I am getting the error Invalid Parameter - -set when running heic-to-jpg on Windows 10 via Git Bash.

What I Did
In Git Bash

heic-to-jpg --s fileimage.heic --keep

I also tried this below
I've tried with --keep, without --keep, using -s rather than --src, moving into the directory and just passing the file name. Same issue.

I am utilizing a Python virtual environment. I installed the heic-to-jpg package using pip.

Any help would be great

image

@gesiod
Copy link

gesiod commented Aug 16, 2024

it is not clear why this package exists if ImageMagic can do it itself
magick mogrify -format JPG *.heic

@creimers
Copy link
Owner

it is not clear why this package exists

Paraphrasing from the README: this is just a thin convenience wrapper. Feel free to ignore it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants