使用tinyMCE imagemanager插件制作两种类型的缩略图

时间:2011-08-18 12:52:45

标签: javascript tinymce

在iimagemanager配置文件中,可以选择制作特定宽度和高度的缩略图。

但是如果我想要2种不同类型的缩略图怎么办?配置中没有这样的选项。

有没有办法做两种类型?

1 个答案:

答案 0 :(得分:1)

查看此页面:http://www.tinymce.com/wiki.php/MCImageManager:upload.format

这是我在配置文件中使用的创建2个额外拇指(除了由create_thumbnail创建的拇指)

//extra thumbnail creation
$mcImageManagerConfig['upload.format'] = '600x600=thumbs600/%f.%e,200x200=thumbs200/%f.%e'; //creates a 610x610 in thumbs610/ and 225x225 in thumbs225/
/* upload.format options:
    %f -> Filename without extension for example "myimage". 
    %e -> Extension the extension part of the image for example "gif". 
    %w -> Output image width, the proportional value. 
    %h -> Output image height, the proportional valie. 
    %tw -> Target width/specified width by the resize option. 
    %th -> Target height/specified height by the resize option. 
    %ow -> Original width, before the image gets resized. 
    %oh -> Original height, before the image gets resize. */