DOCX
JPG
PDF
XML
TIFF
GIF
Convert TIFF to GIF in C++
Use C++ to place a TIFF image on a slide and export it to GIF without Microsoft PowerPoint.
Convert TIFF to GIF Using C++
Aspose.Slides for C++ is a PowerPoint processing API that lets you place TIFF images on slides and export them to GIF in C++ applications without Microsoft PowerPoint. Install the package from NuGet or use the following Package Manager Console command.
Command
PM> Install-Package Aspose.Slides.Cpp
How to Convert TIFF to GIF via C++
C++ developers can convert a TIFF file to GIF by creating a presentation, adding the TIFF image to a slide, and then using Aspose.Slides for C++ to render the slide as a GIF image.
- Create a
Presentationinstance. - Read the TIFF file bytes with
File::ReadAllBytes. - Add the TIFF image to the first slide with
AddPictureFrame. - Call
GetImagewith the required output size. - Save the image with the required
ImageFormatvalue.
System Requirements
Before running the C++ conversion example, make sure that the following prerequisites are available.
- Microsoft Windows, Linux, or another compatible OS with the supported C++ runtime.
- Aspose.Slides for C++ referenced in your project.
TIFF to GIF C++ Conversion Source Code
auto presentation = MakeObject<Presentation>();
auto slide = presentation->get_Slide(0);
auto slideSize = presentation->get_SlideSize()->get_Size();
auto imageData = File::ReadAllBytes(u"image.tiff");
auto presentationImage = presentation->get_Images()->AddImage(imageData);
slide->get_Shapes()->AddPictureFrame(
ShapeType::Rectangle,
0,
0,
slideSize.get_Width(),
slideSize.get_Height(),
presentationImage);
auto image = slide->GetImage(2.0, 2.0);
image->Save(u"image.gif", ImageFormat::Gif);
image->Dispose();
presentation->Dispose();
Free App to Convert TIFF to GIF
Convert presentations and slides online.
Other Supported Conversions
You can also convert TIFF into many other file formats.
TIFF TO BMP (Bitmap Image)
TIFF TO EMF (Enhanced Metafile Format)
TIFF TO HTML (Hyper Text Markup Language)
TIFF TO JPEG (JPEG Image)
TIFF TO ODP (OpenDocument Presentation Format)
TIFF TO OTP (OpenDocument Standard Format)
TIFF TO PDF (Portable Document Format)
TIFF TO PNG (Portable Network Graphics)
TIFF TO POT (Microsoft PowerPoint Template Files)
TIFF TO POTM (Microsoft PowerPoint Template File)
TIFF TO POTX (Microsoft PowerPoint Template Presentation)
TIFF TO PPS (PowerPoint Slide Show)
TIFF TO PPSM (Macro-enabled Slide Show)
TIFF TO PPSX (PowerPoint Slide Show)
TIFF TO PPT (Microsoft PowerPoint 97-2003)
TIFF TO PPTM (Macro-enabled Presentation File)
TIFF TO PPTX (Open XML presentation Format)
TIFF TO SVG (Scalable Vector Graphics)
TIFF TO XML (Extensible Markup Language)
TIFF TO XPS (XML Paper Specifications)