How can export object to gif file?

Enthusiast ,
Jun 09, 2021 Jun 09, 2021

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);

 

 

TOPICS
Scripting

Views

265

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jun 10, 2021 Jun 10, 2021

Copy link to clipboard

Copied

quote

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?

 

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 10, 2021 Jun 10, 2021

Copy link to clipboard

Copied

Yes, ExportFormat not exist GIF. So i try with ExportFormat.JPG.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 10, 2021 Jun 10, 2021

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 10, 2021 Jun 10, 2021

Copy link to clipboard

Copied

Yes, So i need your help: How can export object to file.gif?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 10, 2021 Jun 10, 2021

Copy link to clipboard

Copied

LATEST

Just because you want to do something, it doesn't make an API available to do it.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jun 10, 2021 Jun 10, 2021

Copy link to clipboard

Copied

You need PhotoShop to do this.

 

Regards,
Uwe Laubender

( ACP )

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 10, 2021 Jun 10, 2021

Copy link to clipboard

Copied

Hi Laubender,

When do we use this setting:
Document.ExportForWebPreference.imageConversion=ImageConversion.GIF;

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jun 10, 2021 Jun 10, 2021

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..










Manal,
Adobe Certified Instructor - Creative Cloud Design & Layout Solutions

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jun 10, 2021 Jun 10, 2021

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 )

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines