![]() In this case, the GUI was designed to offer the user a choice from two animated-GIF-file 'player' programs - ImageMagick 'animate' and the 'gifview' program that usually comes packaged with the 'gifsicle' utility that can be used to make animated GIF files. Like the 'batch-find-and-play' utilities for image files and for media files, I wanted to provide a Tk GUI 'front end' to a combination of the 'find' command and a user-selectable 'player' command/program. That is the subject of this page.ĬOMPARISON of this utility (to the 'batch-find-and-play' utilities mentioned above) I had skipped providing a 'batch-find-and-play' utility for animated GIF files. tkPlayAniGIFsInPlaylist - a front-end for multiple animated-GIF players.tkPlayMediaFilesInPlaylist - a front-end for multiple media-playersĪ couple of months ago (2014 March), I contributed code to 'play-from-a-playlist' - animated GIF files - at the page titled:.tkMediaPlayer - to Batch-Select-and-Play Movie & Audio files in a Directory Hierarchy.tkShowImageFilesInPlaylist - a front-end for multiple image viewers.tkImageViewer - for Mask-Selecting Images from a Directory Hierarchy.The code for these utilities is at the pages titled: ![]() llms Running LLaMA 7B and 13B on a 64GB M2 MacBook Pro with llama.In the past six months (in Dec 2013 - March 2014), I contributed code to 'batch-find-and-play' and to 'play-from-a-playlist' either.mediawiki How to run MediaWiki with SQLite on a macOS laptop.twitter Exporting and editing a Twitter Spaces recording.macos Shrinking PNG files with pngquant and oxipng.The distance can be in absolute intensity units or, by appending % as a percentage of the maximum possible intensity (255, 65535, or 4294967295). The -fuzz 7% option is documented here - it treats similar colours as the same colour: I ran this against this 1.3MB animated GIF: This saves over the original, so make a copy of it first. Which gave me a 723KB file which I think looks good enough for my purposes:įound this tip on Stack Overflow: to reduce the site of an animated GIF, you can use the mogrify tool like this: mogrify -layers 'optimize' -fuzz 7% sqlite-convert-demo.gif So I tried this instead: gifsicle -O3 -colors 128 -lossy -o datasette-launch-smaller-2.gif datasette-launch.gif The reduced colours there were a bit too much for me, especially for the purple gradient buttons at the end. rw-r-r- 1 simon wheel 613K Sep 13 12:54 1 simon wheel 3.7M Sep 13 12:52 datasette-launch.gif tmp % gifsicle -O3 -colors 48 -lossy -o datasette-launch-smaller.gif datasette-launch.gif I installed it using brew install gifsicle and ran it like this: /tmp % ls -lah 1 simon wheel 3.7M Sep 13 12:52 datasette-launch.gif You can tweak the number of colours and loss to get it smaller but that’s when it starts to look worse to my eyes Saw your GIF size TIL, and gifsicle -O3 -colors 48 -lossy gets it down to 320k. Simon Willison’s TILs Compressing an animated GIF with gifsicle or ImageMagick mogrify Using gifsicle Compressing an animated GIF with gifsicle or ImageMagick mogrify | Simon Willison’s TILs
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |