{"action":"created","issue":{"url":"https://api.github.com/repos/ImageOptim/gifski/issues/37","repository_url":"https://api.github.com/repos/ImageOptim/gifski","labels_url":"https://api.github.com/repos/ImageOptim/gifski/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/ImageOptim/gifski/issues/37/comments","events_url":"https://api.github.com/repos/ImageOptim/gifski/issues/37/events","html_url":"https://github.com/ImageOptim/gifski/issues/37","id":312545314,"number":37,"title":"Windows: drag-and-droppable batch files like for pngquant?","user":{"login":"JobLeonard","id":259840,"avatar_url":"https://avatars3.githubusercontent.com/u/259840?v=4","gravatar_id":"","url":"https://api.github.com/users/JobLeonard","html_url":"https://github.com/JobLeonard","followers_url":"https://api.github.com/users/JobLeonard/followers","following_url":"https://api.github.com/users/JobLeonard/following{/other_user}","gists_url":"https://api.github.com/users/JobLeonard/gists{/gist_id}","starred_url":"https://api.github.com/users/JobLeonard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JobLeonard/subscriptions","organizations_url":"https://api.github.com/users/JobLeonard/orgs","repos_url":"https://api.github.com/users/JobLeonard/repos","events_url":"https://api.github.com/users/JobLeonard/events{/privacy}","received_events_url":"https://api.github.com/users/JobLeonard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-09T14:06:52Z","updated_at":"2018-04-09T15:12:17Z","closed_at":null,"author_association":"NONE","body":"So recently I had the luck that I could help out a scientist friend who had gigantic, mostly-empty PNGs of his data with only a handful of colours, by using pngquant to *vastly* reduce the PNG size without any visible loss.\r\n\r\nTo my very happy surprise, it came with a drag-and-drop batch file for automatically reducing a large stack of images, and it's pretty simple:\r\n\r\n```bat\r\n@echo off\r\n\r\nset path=%~d0%~p0\r\n\r\n:start\r\n\r\n\"%path%pngquant.exe\" --force --verbose --quality=45-85 %1\r\n\"%path%pngquant.exe\" --force --verbose --ordered --speed=1 --quality=50-90 %1\r\n\r\nshift\r\nif NOT x%1==x goto start\r\n```\r\n\r\nI was wondering: could we add the same for the Windows build of gifski? Or maybe even a version that includes ffmpeg to make converting a bunch of videos as simple as dragging/dropping it on the batch file?"},"comment":{"url":"https://api.github.com/repos/ImageOptim/gifski/issues/comments/379787018","html_url":"https://github.com/ImageOptim/gifski/issues/37#issuecomment-379787018","issue_url":"https://api.github.com/repos/ImageOptim/gifski/issues/37","id":379787018,"user":{"login":"JobLeonard","id":259840,"avatar_url":"https://avatars3.githubusercontent.com/u/259840?v=4","gravatar_id":"","url":"https://api.github.com/users/JobLeonard","html_url":"https://github.com/JobLeonard","followers_url":"https://api.github.com/users/JobLeonard/followers","following_url":"https://api.github.com/users/JobLeonard/following{/other_user}","gists_url":"https://api.github.com/users/JobLeonard/gists{/gist_id}","starred_url":"https://api.github.com/users/JobLeonard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JobLeonard/subscriptions","organizations_url":"https://api.github.com/users/JobLeonard/orgs","repos_url":"https://api.github.com/users/JobLeonard/repos","events_url":"https://api.github.com/users/JobLeonard/events{/privacy}","received_events_url":"https://api.github.com/users/JobLeonard/received_events","type":"User","site_admin":false},"created_at":"2018-04-09T15:12:17Z","updated_at":"2018-04-09T15:12:17Z","author_association":"NONE","body":"Not a Windows dev either but stuck with it for now.\r\n\r\nIf you give me some sensible parameters to pass to gifski I could try working out the bat file!\r\n\r\nI can also try to make an ffmpeg-one, put it in a sub-folder together with an html file titled `[IMPORTANT] Store ffmpeg.exe in this folder.html` which contains this:\r\n\r\n```html\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n  <head>\r\n    <meta charset=\"utf-8\">\r\n    <title>ffmpeg required</title>\r\n  </head>\r\n  <body style='text-align: center;font-weight: bold;'>\r\n    <p>The drag and drop batch files only work if there is an ffmpeg.exe binary in the same folder. You can download one from:</p>\r\n    <p><a href='https://ffmpeg.org/'>https://ffmpeg.org/</a></p>\r\n  </body>\r\n</html>\r\n```\r\n\r\nWould be about as basic yet still helpful as the instrutions can get, no?"}}
{"actor":{"display_login":"JobLeonard"}}