QrCodes icon indicating copy to clipboard operation
QrCodes copied to clipboard

Out-BarcodeImage PNG is empty

Open robinmalik opened this issue 6 years ago • 2 comments

Name                           Value                                                                                                                                                                                              
----                           -----                                                                                                                                                                                              
PSVersion                      5.1.18356.1                                                                                                                                                                                        
PSEdition                      Desktop                                                                                                                                                                                            
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                                                                            
BuildVersion                   10.0.18356.1                                                                                                                                                                                       
CLRVersion                     4.0.30319.42000                                                                                                                                                                                    
WSManStackVersion              3.0                                                                                                                                                                                                
PSRemotingProtocolVersion      2.3                                                                                                                                                                                                
SerializationVersion           1.1.0.1    

QRCodes version: 1.2.0.80

Command: Out-BarcodeImage -Content "test string" -Path $pwd\barcode.png

The resultant PNG has dimensions, but it is empty.

Any thoughts? Verbose doesn't give any additional information.

robinmalik avatar Mar 29 '19 12:03 robinmalik

did you get a solution for this. I am having the same issue

kmacgillivray avatar Aug 07 '19 15:08 kmacgillivray

Current work-around I've found is to instruct the script to use a jpeg extension. The resulting file will still have a png extension, but will contain the QR code desired.

YourFavoriteKyle avatar Jul 08 '20 14:07 YourFavoriteKyle