簡體   English   中英

使用tinyMCE imagemanager插件制作2種縮略圖

[英]Making 2 types of thumbnails using tinyMCE imagemanager plugin

在iimagemanager配置文件中,可以選擇創建特定寬度和高度的縮略圖。

但是,如果我想要2種不同類型的縮略圖怎么辦。 配置中沒有這樣的選項。

有什么辦法可以做兩種類型?

簽出此頁面: 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. */

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM