After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 771012 - Improve WebP animation-saving
Improve WebP animation-saving
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Plugins
git master
Other All
: Normal normal
: 2.10
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2016-09-07 15:15 UTC by pascal.massimino
Modified: 2016-09-11 18:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
various code improvements for WebP saving (7.74 KB, patch)
2016-09-07 15:15 UTC, pascal.massimino
reviewed Details | Review

Description pascal.massimino 2016-09-07 15:15:40 UTC
Created attachment 335004 [details] [review]
various code improvements for WebP saving

Hi,

there's numerous improvements possible in file-webp-save.c code used for saving animated webp.

Attached patch:
  - reorganizes the main loop
  - fixes (temporarily) the bad timestamp by using fixed 100ms delay between frames
  - fixes the progress bar
  - takes care of resource clean-up for some previously unchecked error paths
  - uses 'minimize_size' and 'allow_mixed' options more appropriately
  - only remuxes the final bytestream when ICC profile is present. For most common case, we insert the loop-count information during muxer creation instead of by remuxing at the end.


thanks!
skal/
Comment 1 Urvang Joshi 2016-09-07 19:30:30 UTC
Review of attachment 335004 [details] [review]:

Looks good.
Comment 2 Michael Natterer 2016-09-11 18:39:03 UTC
Thanks, pushed to master with some additional fixes:

commit 342c60254697fe67d010e69f13ae09504081ca45
Author: Pascal Massimino <pascal.massimino@gmail.com>
Date:   Wed Sep 7 17:12:11 2016 +0200

    Bug 771012 - Improve WebP animation-saving
    
    WebP saving: various improvements in file-webp-save.c
    
    - reorganizes the main loop
    - fixes (temporarily) the bad timestamp by using fixed 100ms delay between frames
    - fixes the progress bar
    - takes care of resource clean-up for some previously unchecked error paths
    - uses 'minimize_size' and 'allow_mixed' options more appropriately
    - only remuxes the final bytestream when ICC profile is present. For
      most common case, we insert the loop-count information during muxer
      creation instead of by remuxing at the end.

 plug-ins/file-webp/file-webp-save.c | 91 +++++++++++++++++++++++++++++------------------
 1 file changed, 57 insertions(+), 34 deletions(-)