diff options
| author | Jörg Frings-Fürst <debian@jff.email> | 2026-03-08 11:11:07 +0100 |
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff.email> | 2026-03-08 11:11:07 +0100 |
| commit | 210cc61ee4191465805a770881235c677041f929 (patch) | |
| tree | 22dfc8a656a39b95dba2b537f11dcbe36b5c6f0c /src/photos/JfifSupport.vala | |
| parent | 7868ff68cff97b21fe6d8681f8bc0334849c4d38 (diff) | |
New upstream version 0.32.15upstream/0.32.15upstream
Diffstat (limited to 'src/photos/JfifSupport.vala')
| -rw-r--r-- | src/photos/JfifSupport.vala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/photos/JfifSupport.vala b/src/photos/JfifSupport.vala index fc43663..ceca827 100644 --- a/src/photos/JfifSupport.vala +++ b/src/photos/JfifSupport.vala @@ -190,7 +190,11 @@ public class JfifWriter : PhotoFileWriter { } public override void write(Gdk.Pixbuf pixbuf, Jpeg.Quality quality) throws Error { - pixbuf.save(get_filepath(), "jpeg", "quality", quality.get_pct_text()); + if (pixbuf.has_alpha) { + apply_alpha_channel(pixbuf).save(get_filepath(), "jpeg", "quality", quality.get_pct_text()); + } else { + pixbuf.save(get_filepath(), "jpeg", "quality", quality.get_pct_text()); + } } } |
