Copy link to clipboard
Copied
How can export object to file.gif?
i try this code, but file.gif is not valid.
var strImg=strImg_Folder +"/test.gif" ;
var file = new File(strImg);
oTargetObject.exportFile (ExportFormat.JPG,file);
Copy link to clipboard
Copied
How can export object to file.gif?
i try this code, but file.gif is not valid.
var strImg=strImg_Folder +"/test.gif" ;
var file = new File(strImg);
oTargetObject.exportFile (ExportFormat.JPG,file);
By @daitranthanhoa
I am not a coder - but surely the .JPG should be .GIF?
Copy link to clipboard
Copied
Yes, ExportFormat not exist GIF. So i try with ExportFormat.JPG.
Copy link to clipboard
Copied
But that will just export JPEG files. You end up with a JPEG file called a GIF file. But this is like sticking a label on an orange saying it is an Apple.
Copy link to clipboard
Copied
Yes, So i need your help: How can export object to file.gif?
Copy link to clipboard
Copied
Just because you want to do something, it doesn't make an API available to do it.
Copy link to clipboard
Copied
You need PhotoShop to do this.
Regards,
Uwe Laubender
( ACP )
Copy link to clipboard
Copied
Hi Laubender,
When do we use this setting:
Document.ExportForWebPreference.imageConversion=ImageConversion.GIF;
Copy link to clipboard
Copied
exporting to gif file from indesign is not valid.
but you can copy the object form indesign, past it on photoshop canvas as smark object, export as Gif,
and for fun, you can add animation to gif file from photoshop using timeline..
Copy link to clipboard
Copied
"When do we use this setting:
Document.ExportForWebPreference.imageConversion=ImageConversion.GIF;"
Well, yes, that could be an option if PhotoShop is not available. Duplicate the items you want to export as GIF to a new document and export to HTML. You should see one or more GIFs in the exported folder.
Regards,
Uwe Laubender
( ACP )