-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split and Merge by Python #95
Comments
When you do You can reference individual ifds, and create a new list and then save it. For instance, this merges the first two ifds from a first source with the last two ifds from a second source. The sources and destinations can be paths or streams or io buffers. Depending on the actual contents of the sources, the program may use temp files as part of its processing.
|
Thank you @manthey, it worked very well. Now I can remove any level (ifds) from source file One small question : Is it possible to delete |
tifftools won't do that -- it isn't within its design intent. But you can modify a tiff file to skip ifds. An ifd has a structure of <location of next ifd or 0 to indicate last ifd>, so you could rewrite the 4 or 8 bytes of the location of the ifd you want to remove at the end of the preceding ifd to point to the next ifd. |
Thank you, Can I do this with tifftools ? or maybe python tifffile ? |
Hi,
Thanks for this project
Is it possible to run split and merge with python interface without using the filesystem ?
The text was updated successfully, but these errors were encountered: