Javascript 使用tinyMCE imagemanager插件制作2种缩略图
在iimagemanager配置文件中,有一个选项可以制作特定宽度和高度的缩略图 但是如果我想要两种不同类型的缩略图呢。配置中没有这样的选项 有什么方法可以进行两种类型的操作吗?查看此页面: 下面是我在配置文件中用来创建两个额外拇指的内容(除了create_缩略图创建的拇指之外)Javascript 使用tinyMCE imagemanager插件制作2种缩略图,javascript,tinymce,Javascript,Tinymce,在iimagemanager配置文件中,有一个选项可以制作特定宽度和高度的缩略图 但是如果我想要两种不同类型的缩略图呢。配置中没有这样的选项 有什么方法可以进行两种类型的操作吗?查看此页面: 下面是我在配置文件中用来创建两个额外拇指的内容(除了create_缩略图创建的拇指之外) //extra thumbnail creation $mcImageManagerConfig['upload.format'] = '600x600=thumbs600/%f.%e,200x200=thumbs20
//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. */