Skip to content

Commit 6479e7c

Browse files
authored
Fix green line sometimes occurring on the GIF (#278)
1 parent ad9cfcd commit 6479e7c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Gifski/Gifski.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,7 @@ final class Gifski {
295295
generator.requestedTimeToleranceBefore = .zero
296296
generator.requestedTimeToleranceAfter = .zero
297297

298-
// This improves the performance a little bit.
299-
if let dimensions = conversion.dimensions {
300-
generator.maximumSize = CGSize(widthHeight: dimensions.longestSide)
301-
}
298+
// We are intentionally not setting a `generator.maximumSize` as it's buggy: https://github.com/sindresorhus/Gifski/pull/278
302299

303300
// Even though we enforce a minimum of 3 FPS in the GUI, a source video could have lower FPS, and we should allow that.
304301
var fps = (conversion.frameRate.map(Double.init) ?? assetFrameRate).clamped(to: 0.1...Constants.allowedFrameRate.upperBound)

0 commit comments

Comments
 (0)