Giter Club home page Giter Club logo

Comments (4)

jamiepollock avatar jamiepollock commented on June 18, 2024

Afraid I can't add to this, I usually use a nuPicker or MNTP to filter out a CroppedImage media type, this means an author can reuse a single cropped image anywhere on a site without worrying, my code will handle the correct crop. It does mean the data type has a lot of crop types though.

So typically my conversion will come from a IPublishedContent which calls GetCropUrl().

In my case in v0.7 I guess I'd use a custom resolver which gets out a string from a picked media node and have the crop alias and property alias (just in case) to find it. This is a different direction than @Jeavon was going on the forum which I think is purer to the solution required here.

from umbraco-ditto.

Jeavon avatar Jeavon commented on June 18, 2024

I'm going to create a v3 prerelease of my value converters shortly which will have a converter to ImageCropData and a GetCropUrl extension method for ImageCropData also

from umbraco-ditto.

jamiepollock avatar jamiepollock commented on June 18, 2024

Good to know, @Jeavon. Thanks!

from umbraco-ditto.

leekelleher avatar leekelleher commented on June 18, 2024

Closing this issue. The replies on the forum provide a sufficient solution.

https://our.umbraco.org/projects/developer-tools/ditto/ditto-feedback/66353-imagecropper-mapping-with-ditto#comment-221601

// Thanks @jamiepollock and @Jeavon for your feedback!

from umbraco-ditto.

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.