Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/246.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Plupload以不同的大小保存每个图像_Javascript_Php_Image Uploading_Plupload - Fatal编程技术网

Javascript Plupload以不同的大小保存每个图像

Javascript Plupload以不同的大小保存每个图像,javascript,php,image-uploading,plupload,Javascript,Php,Image Uploading,Plupload,我正在使用Plupload将图像上载到服务器。但我想以原始方式保存每个图像,但也将其保存为缩略图 这是我的密码: $(function() { $("#uploader").plupload({ // Allgemeine Einstellungen runtimes : 'html5,flash,silverlight,html4', url : 'Uploader/examples/upload.php', // Datei führt Upload aus

我正在使用Plupload将图像上载到服务器。但我想以原始方式保存每个图像,但也将其保存为缩略图

这是我的密码:

$(function() {
$("#uploader").plupload({
    // Allgemeine Einstellungen
    runtimes : 'html5,flash,silverlight,html4',
    url : 'Uploader/examples/upload.php', // Datei führt Upload aus

    // max. Anzahl von Dateien
    max_file_count: 10,

    chunk_size: '1mb',

    // Materialien skalieren, um Ladekapazität der App nicht zu überschreiten
    // Zitat des Docs: "obviously resize is not the best name for the option, since currently we can only downsize"
    // http://www.plupload.com/docs/Image-Resizing-on-Client-Side
    resize : {
        width : 2000, 
        height : 2000, 
        quality : 100,
        preserve_headers: false, // Header von jpg Dateien löschen
        crop: false // crop deaktivieren, damit das Bild gesamt bleibt
    },

    filters : {
        // max. Dateigröße
        max_file_size : '100mb',
        // Dateitypen (Bilder und Videos)
        mime_types: [
            {title : "Image files", extensions : "jpg,jpeg,gif,png"}, //Bidler
            {title : "Video files", extensions : "mov,mp4,m4v"} // Videos (werden von iOS unterstützt)
        ]
    },

    // Nutzer kann die Bilder nicht manuell umbenennen
    rename: false,

    // Nutzer kann Dateien sortieren
    sortable: true,

    // Die abgespeicherten Daten haben einmalige Namen
    unique_names:true,

    // Der Nutzer kann nicht manuell den Upload starten - Button deaktiviert
    buttons:{start:false},

    // DragDrop Feature (currently only HTML5 supports that)
    dragdrop: true,

    // Views to activate
    views: {
        list: true,
        thumbs: true, // Show thumbs
        active: 'thumbs'
    },

    // Alternative , falls Browser nicht unterstützt wird
    // Flash settings
    flash_swf_url : 'Uploader/js/Moxie.swf',
    // Silverlight settings
    silverlight_xap_url : 'Uploader/js/Moxie.xap',
有没有一个简单的方法来实现这一点?不幸的是,Plupload没有提供这样的功能

谢谢 克里斯