6 ms·
Fred's ImageMagick Scripts
- lucb1e 5y ago911 requests, 14 MB, 43 seconds download time (HTML ready in 2s though). It's at the bottom of the front page but the server is either already struggling or not doesn't have much upload capacity to begin with.
- mushufasa 5y agoNote -- these scripts disallow commercial use in their default license, and this page is separate from the widely-used imagemagick library, which has a different, more permissive (though also sui generis) license
- umvi 5y agoYou can use them commercially if you pay for a license
- gkoberger 5y agoInteresting. I've never thought of pre-built CLI commands as something that would be licensable. I'm not sure why; it's not particularly different than an NPM module or something, I suppose. I can't put my finger on it, but it feels super weird to me.
- smnrchrds 5y agoBecause with a programming language, you can learn how something works and implement it yourself without copying the implementation. Your implementation will have a similar underlying algorithm but enough differences that it wouldn't be a copy. Algorithm (that is probably not copyrightable) and implementation (that is) are separate. You can use the implementation or you can learn the algorithm and implement it yourself. With CLI tools, however, there is only one way of doing most things. There is no OOP vs functional, no loop vs comprehension, no choice of data structure, nothing. So commands being copyrightable implies no one can do certain actions with the CLI without a license. Because the only way to do those actions are with the exact command that was copyrighted.
- ithinkso 5y agoSo that means once you do something in a CLI tool, and copyright it, it's game over for everyone else using said tool? I understand what you're saying but I'm not sure that tracks, technically you could argue that the tool's license also include every combination of parameters used since the authors implemented them But if a command language is turing complete, or some subset of it, then I guess there is more than one way of doing something and the copyright is a fair game, you can always reimplement it
- skywal_l 5y ago> So that means once you do something in a CLI tool, and copyright it, it's game over for everyone else using said tool? https://en.wikipedia.org/wiki/Clean_room_design https://en.wikipedia.org/wiki/Clean_room_design. Works in the case of copyright. Not patent though.
- zaphirplane 5y agoAny one can add a licence file to anything, doesn’t mean it’s enforceable, right or moral
- eesmith 5y ago> With CLI tools, however, there is only one way of doing most things. These aren't simple commands, but programs written in bash, with multiple ways to implement them, and thus clearly copyrightable.
- AceJohnny2 5y agoTangentially, what's the 2022 take on GraphicsMagick vs ImageMagick?
- hparadiz 5y agoImageMagick I think has more institutional momentum. PHP's imagick extension for example uses it.
- klodolph 5y agoI still use GraphicsMagick. In the past it was a ton faster, apparently ImageMagick changed how they do things and you can’t do a direct comparison any more.
- pram 5y agoI've never even heard of GraphicsMagick until right now.
- pininja 5y agoI’ve been able to make larger image montages in less time with gm compared to im with my MacBook, so I switched. I was surprised by this and could be doing something wrong, but others around me had the same experience for my situation.
- JKCalhoun 5y agoI looked at both tools. They look very cool. Neither seem able to decompose an input image into smaller "tile" images. I have some very large TIFFs that I cannot work with (I can't even open them in some cases!) and I would like to run them through a mill that can "paginate" the larger image into a number of smaller ones.
- jpm48 5y agoHave a look at OpenImageIO it may help. The otool can do lots, and if not you may be able to use the API's (C++ or Python) https://openimageio.readthedocs.io/en/latest/ https://openimageio.readthedocs.io/en/latest/
- dang 5y agoRelated: Fred's ImageMagick Scripts - https://news.ycombinator.com/item?id=16668254 https://news.ycombinator.com/item?id=16668254 - March 2018 (100 comments) Fred's ImageMagick Scripts - https://news.ycombinator.com/item?id=8912591 https://news.ycombinator.com/item?id=8912591 - Jan 2015 (13 comments)
- jonwinstanley 5y agoYes this page is always good value!
- ggm 5y agoIs there a script example of de-dupe of a thousand photos, including ones with trimming, and re-sizing? I believe ImageMagick includes some of the hash based methods which often do a DCT reduction and then do 2D analysis of similarity, emitting a hash code which you can do a hamming distance thing on. But thats a way off practical use to actuall find, stack, rename and identify the one golden one to keep in all the dupes.
- wingerlang 5y agoIf you are open to alternatives, there are tools like (macOS) https://macpaw.com/gemini https://macpaw.com/gemini which scans for duplicates and can find similar pictures. I would assume cropped photos are found unless they are VERY cropped.
- ggm 5y agoFrom the people who did cleanmymac. I bought that, I may buy this one
- sebcat 5y agoNot what you asked for, but related to the method you described: "Image Retrieval Based on Using Hamming Distance" https://www.sciencedirect.com/science/article/pii/S1877050915035012 https://www.sciencedirect.com/science/article/pii/S187705091... EDIT: Here's a python package that does image deduplication. Not ImageMagick and no idea on its performance though. https://idealo.github.io/imagededup/ https://idealo.github.io/imagededup/
- ggm 5y agoLooks interesting
- mceachen 5y agoDeduplication is a hard problem: what constitutes a "dupe" is somewhat arguable. My first approach just used metadata, but that doesn't aggregate the files stripped of their original metadata, like what you get from a Google Takeout, so I had to add image hashing as well. I actually generate three mean hashes in L*a*b color space for PhotoStructure (many hashes ignore color). I've also found that metadata needs to be normalized, including captured-at time, and even exposure metadata. It's a lot of whack-a-mole, especially add new cameras and image formats are released every year. I described more about what I've written for PhotoStructure (which does deduplication for both videos and images) here: https://photostructure.com/faq/what-do-you-mean-by-deduplicate/ https://photostructure.com/faq/what-do-you-mean-by-deduplica... -- it might help you avoid some of the pitfalls I've had to overcome.
- gkoberger 5y agoWow this was such a hit of nostalgia. Not for this particular site, but the way the web was when I started using it. Just ugly sites with pages and pages of information, made out of love for a niche topic. I'm sure this took thousands of hours to make.