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

ImageGlass toolbar icons missing when ImageGlass can access imagemagick's "delegates.xml" file #1875

Open
azzvx opened this issue Mar 26, 2024 · 4 comments
Assignees
Labels

Comments

@azzvx
Copy link

azzvx commented Mar 26, 2024

System information:

  • Windows OS version: Win10 22H2
  • ImageGlass version: 8.11.12.6 and 9.0.10.201

To Reproduce

Steps to reproduce the behavior:

  1. Scoop install imagemagick
  2. Run ImageGlass

Actual behavior:

Toolbar icons missing(v8) or show circle(v9)

Expected behavior:

Toolbar icons show normally

Screenshots:

QQ截图20240326211149

Additional context:

Scoop will create environment variables "MAGICK_HOME" and "MAGICK_CONFIGURE_PATH", and ImageGlass will use configuration files under "MAGICK_HOME" and "MAGICK_CONFIGURE_PATH".

@KyleKolander
Copy link

I'm experiencing the same bug. I uninstalled from Scoop and installed the latest msi from here. When it first loaded, the toolbar icons were fine, but after closing the app and re-opening it, this bug presented again. I even tried the previous version but was met with the same result. Odd that this was all working fine yesterday...

@KyleKolander
Copy link

After completely uninstalling ImageGlass (all filesystem remnants) and then uninstalling Image Magick (all filesystem remnants) and then installing ImageGlass via Scoop again, everything is back to working as it used to... Hopefully it keeps working, and it ends up that it was just a conflict between those two... Maybe this will help someone else.

@azzvx
Copy link
Author

azzvx commented Mar 29, 2024

After completely uninstalling ImageGlass (all filesystem remnants) and then uninstalling Image Magick (all filesystem remnants) and then installing ImageGlass via Scoop again, everything is back to working as it used to... Hopefully it keeps working, and it ends up that it was just a conflict between those two... Maybe this will help someone else.

There are 3 ways to solve this issue.

  1. Comment out the line <delegate decode="svg:decode" .../> in "delegates.xml", witch Magick.NET does.
  2. Remove environment variables "MAGICK_HOME" and "MAGICK_CONFIGURE_PATH".
  3. Add code Environment.SetEnvironmentVariable("MAGICK_HOME", ""); and Environment.SetEnvironmentVariable("MAGICK_CONFIGURE_PATH", ""); in program to avoid ImageGlass load external configuration files.

@d2phap
Copy link
Owner

d2phap commented Apr 6, 2024

Thanks for the info. IG does not configure the path of ImageMagick so it's probably conflicted in this case.

I will use the ConfigDir as the path of ImageMagick in next versions

@d2phap d2phap added this to the v9.1 milestone Apr 6, 2024
@d2phap d2phap removed this from the v9.1 milestone May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants