Giter Site home page Giter Site logo

fit property about image HOT 8 CLOSED

dloused avatar dloused commented on May 9, 2024 1
fit property

from image.

Comments (8)

danielroe avatar danielroe commented on May 9, 2024 2

Closing as in the current version fit simply affects how the image URL is produced - it has no effect on the CSS object-fit property.

from image.

farnabaz avatar farnabaz commented on May 9, 2024 1

Just to mention, the module still in WIP, and I don't recommend using it in production, The first alpha release will be out soon and it has some BREAKING CHANGES for good reasons 👍

from image.

na86 avatar na86 commented on May 9, 2024 1

Thank you @farnabaz ,
can't wait to see the new release and use it in prod
in the meantime thank you!!

from image.

na86 avatar na86 commented on May 9, 2024

Hi guys,

same error here <nuxt-image fit="contain".... output object-fit: cover;

any thoughts?

Amazing module btw, thank you for your help!

from image.

Sananes avatar Sananes commented on May 9, 2024

I can also confirm this is happening.

from image.

farnabaz avatar farnabaz commented on May 9, 2024

The fit property does not use to change object-fit CSS property, Nuxt image using it to resize and scale the image.

from image.

na86 avatar na86 commented on May 9, 2024

Anyway @dloused if you still need to fix it, just force it by using css.

from image.

pkpowell avatar pkpowell commented on May 9, 2024

How do I set the image height for the image-resize function (not the css property mentioned above)?
Setting the path to eg http://localhost:3000/_image/ipx/local/_/s_180_180_inside/img.jpeg works great, but sizes="180 180" has no effect.

from image.

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.