Hi everybody,
Sorry for my english. My question is there is a way to find second Thumbnail create? I'm using ASP CKFinder. For Example;
this is the thumbnail code and i want to add more thumbnails like this;
** this marks are my tryings.
Anyway something like this possible to create more thumbs?
Sorry for my english. My question is there is a way to find second Thumbnail create? I'm using ASP CKFinder. For Example;
Set Thumbnails = server.CreateObject("Scripting.Dictionary")
Thumbnails.Add "url", baseUrl & "_thumbs"
Thumbnails.Add "directory", baseDir & "_thumbs"
Thumbnails.Add "enabled", true
Thumbnails.Add "maxWidth", 100
Thumbnails.Add "maxHeight", 100
Thumbnails.Add "quality", 80
Thumbnails.Add "component", "Auto"
this is the thumbnail code and i want to add more thumbnails like this;
** Set Test = server.CreateObject("Scripting.Dictionary")
** Test.Add "url", baseUrl & "_test"
** Test.Add "directory", baseDir & "_test"
** Test.Add "enabled", true
** Test.Add "maxWidth", 300
** Test.Add "maxHeight", 300
** Test.Add "quality", 80
** Test.Add "component", "Auto"
** Set Test2 = server.CreateObject("Scripting.Dictionary")
** Test2.Add "url", baseUrl & "_test2"
** Test2.Add "directory", baseDir & "_test2"
** Test2.Add "enabled", true
** Test2.Add "maxWidth", 150
** Test2.Add "maxHeight", 150
** Test2.Add "quality", 80
** Test2.Add "component", "Auto"
Set Thumbnails = server.CreateObject("Scripting.Dictionary")
Thumbnails.Add "url", baseUrl & "_thumbs"
Thumbnails.Add "directory", baseDir & "_thumbs"
Thumbnails.Add "enabled", true
Thumbnails.Add "maxWidth", 100
Thumbnails.Add "maxHeight", 100
Thumbnails.Add "quality", 80
Thumbnails.Add "component", "Auto"
** CKFinder_Config.Add "Test", Thumbnails
** CKFinder_Config.Add "Test2", Thumbnails
CKFinder_Config.Add "Thumbnails", Thumbnails
CKFinder_Config.Add "Images", Images
** this marks are my tryings.
Anyway something like this possible to create more thumbs?

Re: More Thumbnails
Take a look at the source code, in _source\Connector\CommandHandlers\ThumbnailCommandHandler.cs scroll down to this part of code:
if ( !System.IO.File.Exists( thumbFilePath ) ) { (...) ImageTools.ResizeImage( sourceFilePath, thumbFilePath, Config.Current.Thumbnails.MaxWidth, Config.Current.Thumbnails.MaxHeight, true, Config.Current.Thumbnails.Quality ); }all you have to do is to add more ImageTools.ResizeImage() calls with different thumbFilePath (you can set it automatically, for example always change the name of a thumbnail from file.ext to file_300px.ext, file_150px.ext) and width, height parameters.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: More Thumbnails
Re: More Thumbnails
In core\connector\asp\CommandHandler\Thumbnail.asp function sendResponse() is called each time CKFinder tries to display a thumbnail.
Take a look at this part of code:
so if you call oCKFinder_Factory.UtilsImage.createThumb with different parameters, you'll get more thumbnails.
Remember to note somewhere all changes in the source code so that you could reapply them after upgrading CKFinder.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: More Thumbnails
Set Thumbnails2 = server.CreateObject("Scripting.Dictionary") Thumbnails2.Add "url", baseUrl & "_thumbs2" Thumbnails2.Add "directory", baseDir & "_thumbs2" Thumbnails2.Add "enabled", true Thumbnails2.Add "maxWidth", 150 Thumbnails2.Add "maxHeight", 150 Thumbnails2.Add "quality", 80 Thumbnails2.Add "component", "Auto" CKFinder_Config.Add "Thumbnails2", Thumbnails2