Author Message

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

Hello,

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

Code:
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?

Cheers.


Profile profile test

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

Here is it:

Code:
   set_time_limit(0);

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

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

   echo "Opening presentation\n";
   $fs->OpenPresentation($PPT_FILE);

   $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

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


Code:
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 6 users online :: 2 registered, 0 hidden and 4 guests (based on users active over the past 5 minutes)
Most users ever online was 108 on Thu Nov 21, 2013 3:41 pm

Registered users: Bing [Bot], Yahoo [Bot]