Jump to content

CLSID blank in W10 machine per _GDIPlus_EncodersGetCLSID ... Ideas?


Recommended Posts

Hope this is simple.

While troubleshooting inability to save an image to file with _GDIPlus_ImageSaveToFile on a W10 machine...

Discovered that the CLSID comes up as an empty string per _GDIPlus_EncodersGetCLSID("jpg")

  • My W7 machine returns a normal CLSID and saves jpgs fine. 
  • This W10 machine (1803 / 64 bit) will save a jpg in "Paint" and "Paint3D", but not with GDIPlus.
  • Doesn't show as having encoders for "bmp" or "tif" either.
  • My web searching hasn't yielded results...

What to do about no apparent (or accessible) encoders?

Thanks for your time and input.

Ed

#include <GDIPlus.au3>
;W10 machine in question returns a blank string for each.  W7 returns the same string ~36 char clsid for each
_GDIPlus_Startup()
ConsoleWrite('_GDIPlus_EncodersGetCLSID("jpg") =  ' & _GDIPlus_EncodersGetCLSID("jpg") & @CRLF)
ConsoleWrite('_GDIPlus_EncodersGetCLSID("jpeg") = ' & _GDIPlus_EncodersGetCLSID("jpeg") & @CRLF)
ConsoleWrite('_GDIPlus_EncodersGetCLSID("bmp") =  ' & _GDIPlus_EncodersGetCLSID("bmp") & @CRLF)
ConsoleWrite('_GDIPlus_EncodersGetCLSID("tif") =  ' & _GDIPlus_EncodersGetCLSID("tif") & @CRLF)
ConsoleWrite('_GDIPlus_EncodersGetCLSID("png") =  ' & _GDIPlus_EncodersGetCLSID("png") & @CRLF)
_GDIPlus_Shutdown()

 

 

Edited by EdWilson
Link to comment
Share on other sites

Win 10 Ver 1809 / 64 bit, I get:

_GDIPlus_EncodersGetCLSID("jpg") =  {557CF401-1A04-11D3-9A73-0000F81EF32E}
_GDIPlus_EncodersGetCLSID("jpeg") = {557CF401-1A04-11D3-9A73-0000F81EF32E}
_GDIPlus_EncodersGetCLSID("bmp") =  {557CF400-1A04-11D3-9A73-0000F81EF32E}
_GDIPlus_EncodersGetCLSID("tif") =  {557CF405-1A04-11D3-9A73-0000F81EF32E}
_GDIPlus_EncodersGetCLSID("png") =  {557CF406-1A04-11D3-9A73-0000F81EF32E}

Link to comment
Share on other sites

Microsoft Windows [Version 10.0.17134.706] 64 bits version 1803 I get

_GDIPlus_EncodersGetCLSID("jpg") =  {557CF401-1A04-11D3-9A73-0000F81EF32E}
_GDIPlus_EncodersGetCLSID("jpeg") = {557CF401-1A04-11D3-9A73-0000F81EF32E}
_GDIPlus_EncodersGetCLSID("bmp") =  {557CF400-1A04-11D3-9A73-0000F81EF32E}
_GDIPlus_EncodersGetCLSID("tif") =  {557CF405-1A04-11D3-9A73-0000F81EF32E}
_GDIPlus_EncodersGetCLSID("png") =  {557CF406-1A04-11D3-9A73-0000F81EF32E}

 

Link to comment
Share on other sites

Thank you for the grabs.

These are identical to other machines that I've also checked today.   Same CLSID between all machines, W7 & W10.

So, not specifically an AutoIt question...what to do when your machine doesn't have encoders showing?

Ed

Link to comment
Share on other sites

  • 1 month later...

Follow up for anyone else dealing with similar problems:

Seems to have been the result of an issue that appeared in AutoIt version 3.3.14.3, and is now corrected in at least 3.3.14.5

When I compiled and/or ran under 3.3.14.2 I got a handle of 'true' and complete CLSID results.

When I compiled and/or ran under 3.3.14.3 I got a handle of 'true' but no CLSID results.

...with all other variables equal.  Tried on 5 machines (compiled version).

Then uninstalled 3.3.14.3 (not working) from one of the machines, installed 3.3.14.5, and it returned the values successfully.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...