11 ms·
Fred's ImageMagick Scripts
- bringtheaction 9y agoCool collection of effects. Too bad they are free for non-commercial use only.
- tyingq 9y agoThat seems a little sketchy for the simpler ones, like this: http://www.fmwconcepts.com/imagemagick/gaussian/index.php http://www.fmwconcepts.com/imagemagick/gaussian/index.php He shows the equivalent IM command lines, and it's 2 lines of text. No issue with the more complex ones though...it's his work.
- ams6110 9y agoHe also documented (with example images) and web-published all of them. It's not just two lines of code.
- kup0 9y agoSo if I do this in ImageMagick on a commerical project: convert $infile \( $infile -blur 0x$width \) -compose minus +swap \ -composite -normalize $tmp0 composite -blend $mix%x100% $tmp0 $infile -matte $outfile I now owe Fred something? So everyone that ever figures out how to do something neat with a free tool and documents it gets to claim the rights to that and ask for money? Might not even be against this as an idea, but the premise seems shaky to me, I guess Maybe more to the point is- if you want to ask for money for doing work like this, don't publish the ImageMagick command equivalents? Though I guess that would be hard to avoid other than putting it in some proprietary UI/app or something. Oh well.
- fiddlerwoaroof 9y agoNo, if you save time reading imagemagick documentation by grabbing an off-the-shelf script, you owe him something
- somebadguy 9y agoHow fucking stupid are you?
- ddingus 9y agoIt's on the honor, ethics system. If you did the work, no worries.
- smallbigfish 9y ago> please contact me (Fred Weinhaus) for licensing arrangements To put it bluntly: pay the dude for the effort.
- amerine 9y agoIt’s amazing they are free for non-commercial use. It’s even more awesome they let you pay for a commercial license.
- extralego 9y agoThere is some very powerful stuff in here. I wonder if the author has implemented these in any DCC plugins?
- orf 9y agoThe whiteboard script is particularly interesting: http://www.fmwconcepts.com/imagemagick/whiteboard/index.php http://www.fmwconcepts.com/imagemagick/whiteboard/index.php
- z3t4 9y agoNice! It could be used before feeding a OCR
- bastijn 9y agoWonder how close this is to the techniques apps like Office Lens use. I am always amazed to the extreme angles I can take a photo and the app still makes it end up as perfect pdf.
- snaily 9y agoCheck out how Dropbox does it: https://blogs.dropbox.com/tech/2016/08/fast-and-accurate-document-detection-for-scanning/ https://blogs.dropbox.com/tech/2016/08/fast-and-accurate-doc...
- bastijn 9y agoThanks. Exactly what I was searching for.
- discussedbefore 9y agohttps://news.ycombinator.com/item?id=12254517 https://news.ycombinator.com/item?id=12254517
- acqq 9y ago> https://officelens.uservoice.com/forums/289714-office-lens-users/suggestions/18525769-allow-it-to-work-offline https://officelens.uservoice.com/forums/289714-office-lens-u... It seems Office Lens depends on the online servers and doesn't do anything offline. I still prefer offline solutions, especially open-source ones.
- symisc_devel 9y agoFor those interested we implemented from scratch a subset of these commands as a REST API service available to call at request from any programming language. https://pixlab.io/cmdls https://pixlab.io/cmdls
- bhldr 9y agoThis is a bit far from what most would consider REST. Just call it a HTTP api? Looks cool though! I would love a product that behaves like a proxy/CDN for images and does some on-demand resizing/filtering.
- benwilber0 9y agohttps://www.imgix.com/ https://www.imgix.com/
- aloftin 9y agoCloudinary is this exactly. It’s great! https://cloudinary.com/ https://cloudinary.com/
- igorv 9y agohttps://sirv.com https://sirv.com
- jcollins 9y agohttps://github.com/beetlebugorg/mod_dims/wiki https://github.com/beetlebugorg/mod_dims/wiki Backed by Imagemagick. We usually run it behind a CDN like Akamai or Cloudfront but you can also use Apache httpd’s built-in file caching.
- jjeaff 9y agoThere is no true REST API. Just like there is no true Scottsman.
- bhldr 9y agoI don't disagree with you, but this one in particular seems very far from the definition even if you ignore all the hypermedia stuff.
- jinpan 9y agoIt would be interesting to augment an image recognition dataset with additional inputs generated by minor transformations under these scripts.
- steve_musk 9y agoThis is fairly standard practice (although I don’t know if ImageMagick is specifically used).
- adius 9y agohttps://github.com/aleju/imgaug https://github.com/aleju/imgaug - Image augmentation for machine learning experiments
- hawktheslayer 9y agoThese are great and I need to start using these. For instance the dominantcolor script extracts color schemes from pictures. Something I've tried to do by eye in the past with limited success. http://www.fmwconcepts.com/imagemagick/dominantcolor/index.php http://www.fmwconcepts.com/imagemagick/dominantcolor/index.p...
- otterpro 9y agoIt's listed alphabetically and difficult to know what each script does. I had to click each one to find out what it does, but these are my favorites: * tshirt- Transforms an image to place it in a region of a tshirt image * tileimage - Tiles an image to a given size with various tile arrangements. * shadows - Applies drop shadows to an image. * grid - Superimposes a set of horizontal and/or vertical grid lines on an image. * lupe - Applies a magnifying glass effect in a local area of an image. * multicrop - Crops and unrotates multiple images from a scanned image. * peelingpaint - Applies a peeling paint effect to an image. * picframe - Adds a picture frame around an image. * picturefold - Applies a map-like folded appearance to an image. * PINBARREL - Corrects or applies pincushion and/or barrel lens distortion to an image. * PUZZLE - Applies a puzzle like effect to an image. * RANDOMCLIPART - Randomly distributes clip art over the image. * SKETCH - Applies a sketch effect to an image. SMARTCROP - Automatically crops an image to a given size around the hightest detail region. * TILER - Converts an image into a tilable texture. * UNPERSPECTIVE - Automatically removes pespective distortion from an image. * UNROTATE - Automatically unrotates a rotated image and trims the surrounding border. * VINTAGE1 - Applies a a classic vintage effect to an image * DIAGCOLLAGE - Collages three images in a diagonal orientation. * DEFISHEYE - Corrects for fisheye distortion in an image. * EMBROIDERY - Applies an embroidery effect to each color in an image. * DOMINANTCOLOR - Computes the dominant color in an image. * OVERLAPCROP - Creates a sequence of cropped subsections permitting optional overlap of the subsections. * TRIMMER - Trims the background from any number of specified sides of an image. * outfit - use texture image onto image of clothing * splitcrop - split one image into many pieces * whiteboard - Processes a picture of a whiteboard to clean up the background and correct the perspective * postagestamp - convert image into stamp * glow - add glow effect
- deleted 9y ago[deleted]
- danieltillett 9y agoThere is a summary page of what all the scripts do [0]. 0. http://www.fmwconcepts.com/imagemagick/script_list.txt http://www.fmwconcepts.com/imagemagick/script_list.txt
- anon1253 9y agoIf ImageMagic isn't your thing and like a GUI but don't like Photoshop or the GIMP I really recommend PixInsight (http://www.pixinsight.com/ http://www.pixinsight.com/). It's normally used for astronomical image processing but it's well build with some advanced stuff in there. Unfortunately not free, but people have to pay the bills!
- jfaucett 9y agoOh man this page brings back some golden memories! I remember working with ImageMagick for the first time in 2010 or 2011 when I wrote a bash script to programmatically scale and center thousands of images for creating image gallery thumbnails on an internal social platform for winners of a design award. I somehow landed on this page and used the massive amounts of knowledge to learn how the ImageMagick scripting interface worked. Then it was a fairly simple task to build the script, but - like all bash scripts for me - I've forgotten every single parameter now :) Somehow that feels much longer ago than just 7 years, maybe its just the website or the feeling of nostalgia looking at it.
- boramalper 9y agofisheye2rect is just mind-blowing http://www.fmwconcepts.com/imagemagick/fisheye2rect/index.php http://www.fmwconcepts.com/imagemagick/fisheye2rect/index.ph... I guess I never really understood why fisheye lenses were so valuable, until now. =)
- gnarbarian 9y agoYes it is. I've been using that script to create 360 photos which can be fed into Google's web vr view. [0] [0] https://faa-aviation-data-portal.github.io/routeDemo/camera/cube.html https://faa-aviation-data-portal.github.io/routeDemo/camera/...
- jumelles 9y agoThis is really cool, can you explain more how you did this? :)
- gnarbarian 9y agoI don't have the script on hand at the moment. But essentially I take two 180 degree fisheye photos one pointing straight up and one pointing straight down. (for this, I used a homebrew cardboard box and two mobotix cameras) I then use OP's script to "unroll" each fisheye photo. I then stick them together top to bottom with looks like this: https://faa-aviation-data-portal.github.io/routeDemo/camera/fused.jpg https://faa-aviation-data-portal.github.io/routeDemo/camera/... Which I feed into this: https://github.com/googlevr/vrview https://github.com/googlevr/vrview voila took a couple hours start to finish.
- danjc 9y agoHuh, I remember as a teen bring blown away by IPIX ('90s). It dewarped a fish eye image so that you could look around a scene from a fixed vantage point.
- stanislavb 9y agoOld and gold
- ct520 9y agoOMMMMMMMMMMMMMMMMMMMMMGGGGGGGGGGGGGGGGGGGGGGGGGGGGG THANK YOU
- jonzlin 9y agoInteresting to see this re-surface on Hacker News. This set of scripts has to be among the most useful things I've found on the internet, and I've used some of these in many of my projects!
- fwgwgwgch 9y agoI love ImageMagick but I can't believe there's only one feel facto cli image processing tool. Do people know of others?
- mongol 9y agoThere is gmic, http://gmic.eu http://gmic.eu It is quite powerful though somewhat eccentric. I once developed some scripts to use it to "develop" jpg from raw images, see https://github.com/claes/gmic-extensions https://github.com/claes/gmic-extensions
- mario14 9y agoI second that. G'MIC has an impressive bunch of built-in commands to manipulate images, see e.g. the examples shown in the reference documentation (click the first magnifying glass, then use right arrow on the keyboard): http://gmic.eu/reference.shtml#subsection15 http://gmic.eu/reference.shtml#subsection15 And as the commands are built-in, no needs for external scripts, those effects are available from any interface using the `libgmic` API (including C/C++ programs).
- ZenPsycho 9y agographicsmagick is a fork that’s been going for a while
- Theodores 9y agoI prefer the PHP version of ImageMagick as PHP is a better scripting tool than 'cli'. The manual is a bit hard to follow as things are essentially undocumented. However, if you want to carefully prepare a batch of images, going to PHP is taking it to the next level. Particularly interesting are features such as being able to save images in different colour spaces, e.g. 4:2:0, going lo-res on the chroma for a lower ultimate file size in jpg. If I had a lifetime spare I would complete the PHP Imagick documentation and write a version of Fred's scripts in PHP, so they can be chained together in a nifty object oriented way...
- fwgwgwgch 9y ago
- contingencies 9y agoSeeing tools like this pop up periodically and get so many upvotes it seems a lot of people aren't aware of great tools. It would be interesting to see a gallery of Unix classic/modern tools presented in a structured course. Is anyone aware of one? Something like images (imagemagick), video (ffmpeg/vlc), audio (sox), phone (asterisk/etc.), SMS (pdus/various), linguistics (various), classification (NNs), version control, snapshots, clustering (PXE/corosync/pacemaker), security (kernel toolkits), transaction systems and databases (sqlite/RDBMS/noSQL/time series), networking (filtering/firewall rules, intermittent connectivity, local multidrop protocols, tcpdump/wireshark), kernel security toolkits, CI/CD, etc. Scope would be essentially everything except tools lying within the popular web stacks. The goal would be that a student with interest could work their way through the syllabus and emerge a capable multi-domain unix hacker, rather than needing to encounter these problem domains over decades of career, rediscovering well worn approaches.
- paradroid 9y agoIt would need to be automatically collated by an AI with access to the Internet Archive that is probably quite a bit more sophisticated than what we currently have. DMOZ is the closest curated thing I can think of.
- jypepin 9y agoDMOZ seems to have some good resources, going through it quickly I found http://www.tldp.org/LDP/abs/html/index.html http://www.tldp.org/LDP/abs/html/index.html which has a very good bash intro!
- paradroid 9y agoNot sure why I was downvoted. It's not as if the person downvoting me provided a better option than I did!
- jypepin 9y agoYES THIS PLEASE. I learned programming through the web, so I lack a lot of knowledge in basic systems / bash / *nix / I'm not even sure how to call that. I've googled so many time "learn bash" etc but it's never really what I'm looking for. I regularly discover tools that are so basic yet so powerful (all things you mention) yet I feel there is a lack of (great) resources online to "learn the basic tools of your CL".
- tomaskafka 9y agoNo no no, we can't have this, that's too old fashioned! Proper way to do this is to create an image processing SaaS around these scripts, announce to store the filter presets on blockchain and create a marketplace platform for filter creators, have a $50M ICO, spend the cash on lambos, and fail awesomely. EDIT: Ok, I just didn't scroll far enough :) https://news.ycombinator.com/item?id=16668686 https://news.ycombinator.com/item?id=16668686
- tzahola 9y agoYou forgot to include deep learning. I’m not buying your product!
- gitgud 9y agoIt constantly amazes me how huge the variation is between some software services and the reward for their effort. On the one hand you have giant startups earning millions from a tiny SaaS tool. And on the other hand you have a single developer sharing a huge library of useful tools for free. It's a crazy world now, it seems opportunity is everywhere.
- thanatos519 9y agoThat awk Mandelbrot script is pretty hardcore.