[squeak-dev] The Trunk: MorphicExtras-kfr.276.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Jun 15 20:06:44 UTC 2020

Karl Ramberg uploaded a new version of MorphicExtras to project The Trunk:

==================== 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.!

More information about the Squeak-dev mailing list