Giter Site home page Giter Site logo

Comments (3)

rikschennink avatar rikschennink commented on May 29, 2024 1

Can you try setting name to filepond[]

from filepond-plugin-image-transform.

kikky7 avatar kikky7 commented on May 29, 2024

Yes, it works with name as array.

I have another question: can I use variant as preview, because now for preview is used first image. I want to use one of cropped thumbnails created by transform plugin, but can't find anything about it in docs.

<file-pond
          name="filepond[]"
          allow-multiple="true"
          max-files="8"
          :accepted-file-types="['image/jpeg']"
          :image-resize-target-width="1920"
          :image-resize-target-height="1200"
          :image-resize-upscale="true"
          :image-transform-variants="{
            thumb_: (transforms) => {
              transforms.resize.size.width = 200;
              transforms.resize.size.height = 200;
              transforms.crop.aspectRatio = 1;
              return transforms;
            },
            thumb2x_: (transforms) => {
              transforms.resize.size.width = 400;
              transforms.resize.size.height = 400;
              transforms.crop.aspectRatio = 1;
              return transforms;
            },
            thumb3x_: (transforms) => {
              transforms.resize.size.width = 600;
              transforms.resize.size.height = 600;
              transforms.crop.aspectRatio = 1;
              return transforms;
            },
          }"
          :server="filepondServer"
        />

from filepond-plugin-image-transform.

rikschennink avatar rikschennink commented on May 29, 2024

That's not possible, you'd have to try to make the default version the one you want to show (which is now a variant) and have that variant be the one that is now the default. If that makes sense.

(I'll close the issue because the problem has been resolved).

from filepond-plugin-image-transform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.