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:
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
Himm i can't understand rightly. I think your example is ASP.net. I can't do it in ASP
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
Thank you very much for your help, i work i little hard and viola