Code Monkey home page Code Monkey logo

Comments (4)

MichaelRise avatar MichaelRise commented on May 29, 2024

Above dimensions of 150x150px works ok, but below the photo dimensions are aggravated.

from unyson.

rockalife avatar rockalife commented on May 29, 2024

Hi @MichaelRise,

Are you saying that if you select an image smaller than 150x150px into the upload option type then it gets squashed and does not look good, like this:

small image upload

If this is what you are saying then it happens because WordPress does not make a thumbnail of an image (like image-150x150.png) when an image smaller than the default thumbnail size is uploaded to the media library. In such case the upload option type does not take the thumbnail (because it does not have one) and just takes the original small image, which may or may not look good in the 50x50px div into which the upload option type puts the image.

Not sure though how it may look good in the background-image and multi-upload option types, because they behave the same way.

If all of this does not make sense to you, or I misunderstood completely the issue feel free to comment and maybe share some screenshots for a better understanding.

from unyson.

MichaelRise avatar MichaelRise commented on May 29, 2024

Hey,

That's what I meant.
Thanks to.

from unyson.

rockalife avatar rockalife commented on May 29, 2024

Hi again @MichaelRise, just wanted to make it clear that it happens because WordPress doesn't make a thumbnail that would look nice in the upload option type, so there is nothing much that we can do here.

I am closing this issue.

from unyson.

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.