• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

479

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
Community Expert ,
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?

 

 

Votes

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.

Votes

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.

Votes

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?

Votes

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.

Votes

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
Community Expert ,
Jun 10, 2021 Jun 10, 2021

Copy link to clipboard

Copied

You need PhotoShop to do this.

 

Regards,
Uwe Laubender

( ACP )

Votes

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;

Votes

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
Community Expert ,
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..

Votes

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
Community Expert ,
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 )

Votes

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