I load a multiframe TIFF from a Stream in my C# application, and then save it using the Image.Save method. However, this only saves the TIFF with the first frame – how can I get it to save a multiframe tiff?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since you don’t provide any detailed information… just some general tips:
Multi-Frame TIFF are very complex files – for example every frame can have a different encoding… a single
Bitmap/Imagecan’t hold all frames with all relevant information (like encoding and similar) of such a file, only one at a time.For loading you need to set parameter which tells the class which frame to load, otherwise it just loads the first… for some code see here.
Similar problems arise when saving multi-frame TIFFs – here you need to work with
EncoderParametersand useSaveAddetc. – for some working code see here.