Description
I have a few thousand .tif images created in Photoshop containing 4 guidelines inside. Using ruby-vips on Windows, I need to crop the middle portion based on the 4 guidelines. Is there an easy way to detect the PS guidelines in ruby-vips?
Found a PS script option on: https://www.ps-scripts.com/viewtopic.php?t=9822
*the info about guides can be found in the photoshop tag hex 35 42 49 4D 04 08 the length of the tag is found at offset 11. that value is the length to the next tag the number of guides can be found at offset 27. From that point the data repeats for each guide. 4 bytes for the location. That value / 32 = pixels and one byte for type 0 = vert and 1 = horz
Secondly: when trying to save the final image to PDF (ruby-vips with magicksave) I am getting the “magicksave: libMagick error: NoEncodeDelegateForThisImageFormat” Tried with multiple file formats, all have the same error.
Any help or pointing to the right direction is much appreciated.