[GH-ISSUE #627] Error importing PNG images from Corel #2110

Closed
opened 2026-03-01 18:53:02 +03:00 by kerem · 0 comments
Owner

Originally created by @Papouchcom on GitHub (Apr 7, 2020).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/627

Originally assigned to: @NickeManarin on GitHub.

I attach two PNG images exported from Corel (t0.png, t1.png). I have two problems with this:

  1. Project is set to size 376x210 px. The images also have a dimension of 376x210px. However, small ones are imported (see import.png). Please, what can you do about it?
  2. When I try to export the project (see png test.stg) to Gif, I get an error. I attach error messages below. The error occurs regardless of the export method (1.0 / FFmpeg / Gifski).

Images and the project are here: test.zip

   v System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   v System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   v System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
   v System.Threading.Tasks.Parallel.For(Int32 fromInclusive, Int32 toExclusive, Action`1 body)
   v ScreenToGif.ImageUtil.ImageMethods.PaintTransparentAndCut(List`1 listToEncode, Color transparent, Int32 id, CancellationTokenSource tokenSource)
   v ScreenToGif.Windows.Other.Encoder.<Encode>d__24.MoveNext()

Internal error IndexOutOfRangeException:

   v ScreenToGif.ImageUtil.ImageMethods.<>c__DisplayClass0_1.<PaintTransparentAndCut>b__0(Int32 i)
   v System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   v System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   v System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)
Originally created by @Papouchcom on GitHub (Apr 7, 2020). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/627 Originally assigned to: @NickeManarin on GitHub. I attach two PNG images exported from Corel (_t0.png_, _t1.png_). I have two problems with this: 1) Project is set to size 376x210 px. The images also have a dimension of 376x210px. However, small ones are imported (see _import.png_). Please, what can you do about it? 2) When I try to export the project (see _png test.stg_) to Gif, I get an error. I attach error messages below. The error occurs regardless of the export method (1.0 / FFmpeg / Gifski). Images and the project are here: [test.zip](https://github.com/NickeManarin/ScreenToGif/files/4442883/test.zip) ``` v System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) v System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) v System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally) v System.Threading.Tasks.Parallel.For(Int32 fromInclusive, Int32 toExclusive, Action`1 body) v ScreenToGif.ImageUtil.ImageMethods.PaintTransparentAndCut(List`1 listToEncode, Color transparent, Int32 id, CancellationTokenSource tokenSource) v ScreenToGif.Windows.Other.Encoder.<Encode>d__24.MoveNext() ``` Internal error _IndexOutOfRangeException_: ``` v ScreenToGif.ImageUtil.ImageMethods.<>c__DisplayClass0_1.<PaintTransparentAndCut>b__0(Int32 i) v System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1() v System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) v System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>) ```
kerem 2026-03-01 18:53:02 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#2110
No description provided.