Every now and again you might want to scan photographs or postcards using your scanner. You could scan them one by one and crop them out in Photoshop but Photoshop will actually do it for you. Let have a look at the results of a typical scan.
The images are off centre and cropping is going to be tricky. Instead I can use one of Photoshop’s Automate Functions. Go up to File > Automate > Crop and Straighten Photos. Automatically it will crop the images and straighten them for you.
This technique is also useful for sketches. Often I like to use pen and paper to come up with ideas. Sometimes I want to get that sketch into Photoshop or Illustrator.
Using the Automate function I can ask Photoshop to split things out for me. Then I can use the sketch as a guide in either Photoshop or Illustrator.
It is not always 100% perfect but I usually find it is worth a try before using a more time consuming technique.
Have an update or suggestion for this article? You can edit it here and send me a pull request.
Using HashiCorp Vault with LDAP
How to use HashiCorp Vault to setup an LDAP backed secret store with read-only access for users in groups and read-write access for specific users
Linux and Unix xargs command tutorial with examples
Tutorial on using xargs, a UNIX and Linux command for building and executing command lines from standard input. Examples of cutting by character, byte position, cutting based on delimiter and how to modify the output delimiter.
Copy a file in Go
How to copy a file in Go. The ioutil package does not offer a shorthand way of copying a file. Instead the os package should be used.