Skip to content

Commit dfd9971

Browse files
authored
Merge pull request #2680 from Shnatsel/gif-defaults
GIF: default to a reasonable encoding speed
2 parents 2b77e2b + 1e554a3 commit dfd9971

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codecs/gif.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,9 @@ pub struct GifEncoder<W: Write> {
477477
}
478478

479479
impl<W: Write> GifEncoder<W> {
480-
/// Creates a new GIF encoder with a speed of 1. This prioritizes quality over performance at any cost.
480+
/// Creates a new GIF encoder with a speed of 10. This provides a good balance between quality and encoding speed.
481481
pub fn new(w: W) -> GifEncoder<W> {
482-
Self::new_with_speed(w, 1)
482+
Self::new_with_speed(w, 10)
483483
}
484484

485485
/// Create a new GIF encoder, and has the speed parameter `speed`. See

0 commit comments

Comments
 (0)