The Trunk: MorphicExtras-kfr.276.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: MorphicExtras-kfr.276.mcz

commits-2
Karl Ramberg uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-kfr.276.mcz

==================== Summary ====================

Name: MorphicExtras-kfr.276
Author: kfr
Time: 15 June 2020, 10:06:41.338203 pm
UUID: 8a39f5e1-becc-1043-afb0-4adcc47d3266
Ancestors: MorphicExtras-kfr.275

Speed up search for transparent color in gif animation.
This is not the best solution since animated gifs use transparent colors differently. But untill someone fixes the way we handles the transparent colors in the gif reader this will give the overall best experience.
See https://graphicdesign.stackexchange.com/questions/113306/why-does-enabling-transparency-in-an-animated-gif-reduce-its-file-size/114301#114301

=============== Diff against MorphicExtras-kfr.275 ===============

Item was changed:
  ----- Method: AnimatedImageMorph>>fromReader: (in category 'private') -----
  fromReader: reader
  images := reader forms.
  delays := reader delays.
+ (images anySatisfy:[:each|(each colors includes: Color transparent)])  ifTrue:[self isOpaque: true].
- images do:[: each | (each colors includes: Color transparent) ifTrue:[self isOpaque: true]].
  self reset.!