MeguminBOT / TextureAtlas-to-GIF-and-Frames

A tool that extracts all frames from a folder with spritesheets and sorts them into their own folders. Also includes a create gif option.
GNU Affero General Public License v3.0
6 stars 2 forks source link

Unable to load module: The specified procedure could not be found #12

Closed Jsfasdf250 closed 5 days ago

Jsfasdf250 commented 2 weeks ago

This error pops up whenever I attempt to process gifs with the higher color quality option: image This happened on Windows 11 Pro 23H2 with ImageMagick already installed, with the following version info:

Version: ImageMagick 7.1.1-6 Q16-HDRI x64 b2dd67b:20230402 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenCL OpenMP(2.0)
Delegates (built-in): bzlib cairo flif freetype gslib heic jng jp2 jpeg jxl lcms lqr lzma openexr pangocairo png ps raqm raw rsvg tiff webp xml zip zlib
Compiler: Visual Studio 2022 (193431943)
MeguminBOT commented 1 week ago

Using the script.py or the .exe file?

Edit: Looks like the .exe file. That's odd, I tried it on computers that doesn't have ImageMagick installed and it worked fine. Try dragging your ImageMagick library install files into the ImageMagick folder inside TTGAF install folder, it may solve it, if that's the case I'll probably bundle the entirety of ImageMagick into the app.

Edit2: It could be related to the path in the script itself clashing in someway with your installed ImageMagick. I haven't had issues on my PC but that doesn't mean others can't.

Jsfasdf250 commented 1 week ago

I tried running the code in Visual Studio 2022 and it still had the same error. However, when disabling lines 6-9 (which configure the environment and dll path) there were no problems. Perhaps implement an advanced toggle for that?

MeguminBOT commented 1 week ago

I tried running the code in Visual Studio 2022 and it still had the same error. However, when disabling lines 6-9 (which configure the environment and dll path) there were no problems. Perhaps implement an advanced toggle for that?

I don't want a toggle for it yet, in the new UI in the future? Yeah sure. I really want the application to be mostly set and forget with the Tkinter UI.

But I haven't seen any reports of this error besides this one, question is why it happens for you, if you manage to find out the cause because this is on your end (mostly), what we can do to prevent it from happening is the big question. The issue is definitely linked to your environment with your personal imagemagick install though!

MeguminBOT commented 1 week ago

I do have an idea how to handle this though now that also allows OSX and Linux users to use high quality. So I'll implement it later today.

MeguminBOT commented 1 week ago

The following commit should solve this: https://github.com/MeguminBOT/TextureAtlas-to-GIF-and-Frames/commit/96380af64e940e68fa858a265fc4c963a5694830

MeguminBOT commented 5 days ago

Closing this now, as no response confirming it working or not. Post another issue if previous commits didn't fix.