Thumbnails Generation
Author | Message |
Hello, 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.
|
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;
|
Can anybody give code to have thumbnails in Java?
|
Java samples and API can be found here: 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
|
||||||
|
Who is online | |
---|---|
![]() |
In total there are 7 users online :: 0 registered, 0 hidden and 7 guests (based on users active over the past 5 minutes) Most users ever online was 803 on Sat Dec 12, 2020 9:21 am Registered users: No registered users |