ConvertTo-Jpeg icon indicating copy to clipboard operation
ConvertTo-Jpeg copied to clipboard

No suitable transform was found to encode or decode the content

Open AdrianbCojocaru opened this issue 1 year ago • 1 comments

powershell.exe -executionpolicy bypass -file ConvertTo-Jpeg.ps1 -files "IMG_0923.HEIC" System.Management.Automation.MethodInvocationException: Exception calling "Wait" with "0" argument(s): "One or more errors occurred." ---> System.AggregateException: One or more errors occurred. ---> System.Exception: No suitable transform was found to encode or decode the content. (Exception from HRESULT: 0xC00D5212) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at CallSite.Target(Closure , CallSite , Object ) --- End of inner exception stack trace --- at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception) at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) At C:\Users\adria\Downloads\poze-20240629T125809Z-001\ConvertTo-Jpeg.ps1:121 char:13

  •         throw $_.Exception.ToString()
    
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (System.Manageme...tedFrame frame):String) [], RuntimeException
    • FullyQualifiedErrorId : System.Management.Automation.MethodInvocationException: Exception calling "Wait" with "0 " argument(s): "One or more errors occurred." ---> System.AggregateException: One or more errors occurred. ---> Sy stem.Exception: No suitable transform was found to encode or decode the content. (Exception from HRESULT: 0xC00D52

--- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at CallSite.Target(Closure , CallSite , Object ) --- End of inner exception stack trace --- at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Excepti on exception) at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)

AdrianbCojocaru avatar Jun 29 '24 13:06 AdrianbCojocaru

Duplicate of: https://github.com/DavidAnson/ConvertTo-Jpeg/issues/12

DavidAnson avatar Jun 29 '24 16:06 DavidAnson