Coder Social home page Coder Social logo

Comments (6)

anrie avatar anrie commented on June 3, 2024

Hey Philippe,

without seeing any code or concrete examples it's really hard to tell what is going on.
Did you check the modelform example and spot any differences? (Apart from the fact that you are using class based views ;-))

However if it's not a simple syntax problem it would be great if you could create a test case that demonstrates the issue so we have starting point to fix the problem.

from django-image-cropping.

philippeluickx avatar philippeluickx commented on June 3, 2024

Hey!

Found out at least the first part. The doubles showing is just that I was importing

{{ form.media.css }}

{{ form.media.js }}

in my base template... Seems like that duplicates the croping image.

Remains the Createview, although I was considering that it has probably more to do with the fact that no image is uploaded yet. How would I be able to use imagecropping through a Createview best? Would that be through ajax somehow?

from django-image-cropping.

philippeluickx avatar philippeluickx commented on June 3, 2024

Closing this for now, would be glad to hear if there is a way to use this during creation of an image!

from django-image-cropping.

kuanyui avatar kuanyui commented on June 3, 2024

I also wonder if there any way to use image cropping in CreateView. Is there any progress?

from django-image-cropping.

wanaryytel avatar wanaryytel commented on June 3, 2024

I too tried to implement it in CreateView, needless to say without success. Waiting for some hints as well.

from django-image-cropping.

anrie avatar anrie commented on June 3, 2024

As discussed in another Issue (#61) it would be nice if we could leverage the FileReader-API for our cropping concerns. That would allow us to crop images without saving them first, which seems to be the problem with the CreateView.

As we use Image Cropping mainly in the backend this is not a top priority for us, but it would of course be great if someone would come up with Pull Request for this feature.

from django-image-cropping.

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.