Author Message

Posted: Fri Jun 12, 2009 9:00 am   Post subject: Thumbnails Generation


I'm using PHP with COM and I'm trying to generate thumbnails for the presentation.

In the documentation, the C# code is given as

slides.SaveThumbnails("C:\thumbnails", "thumb", ImageFileType.IFT_JPG, 120, 90, 75);

I was wondering if anyone knows what would be the PHP equivalent of this statement?


Profile profile test

Posted: Mon Jun 15, 2009 12:11 pm   Post subject: Re: Thumbnails Generation

Here is it:


   $PPT_FILE = "../../media/presentations/quicktour.ppt";
   $SWF_FOLDER = "";
   $SWF_FILE = "quicktour.swf";

   $fs = new COM("iSpring.PresentationConverter");

   echo "Opening presentation\n";

   $slides = $fs->Presentation->Slides;

        // 2 is an alias for Jpeg Image type
        // 0 - for wmf
        // 1 - for png
        // 3 - for bmp
   $slides->SaveThumbnails("c:\\thumbnails", "thumb", 2, 120, 90, 75);

   $fs = null;
   $slides = null;

Profile profile test WWW www ICQ ICQ

Posted: Tue Jul 28, 2009 3:03 pm   Post subject: Re: Thumbnails Generation

Can anybody give code to have thumbnails in Java?

Profile profile test

Posted: Fri Sep 11, 2009 10:07 am   Post subject: Re: Thumbnails Generation

Java samples and API can be found here:
C:\Program Files\iSpring\SDK\samples\server\java

package com.ispring;
public interface Slide
void saveImage( String destinationFile, int width, int height, int quality );

package com.ispring;
public interface Slides extends Iterable<Slide>
        public void saveThumbnails( String destinationFolder, String filePrefix, ImageFileType format, int width, int height );

1. Create PresentationConverter interface via PresentationConverterFactory
2. Open the presentaiton
3. call the saveThumbnails method of the slides interface or call the saveImage method of a slide interface

Profile profile test WWW www ICQ ICQ
Display posts from previous:  Sort by  


Who is online
Who is online In total there are 12 users online :: 1 registered, 0 hidden and 11 guests (based on users active over the past 5 minutes)
Most users ever online was 1039 on Sun May 09, 2021 3:50 pm

Registered users: Google [Bot]