Comments (6)
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.
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.
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.
I also wonder if there any way to use image cropping in CreateView. Is there any progress?
from django-image-cropping.
I too tried to implement it in CreateView, needless to say without success. Waiting for some hints as well.
from django-image-cropping.
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)
- Frontend error
- Cropping images to black HOT 1
- Image crop issue HOT 1
- Screenshot link in README is down HOT 1
- Uncaught TypeError: $(...).Jcrop is not a function in Django 2.2.14 HOT 4
- How to handle form.media with dynamic changing page
- GCP Storage / AWS-S3 friendly ImageBackend HOT 3
- Images are not cropped? HOT 1
- Cropping field not rendered in custom forms (in ModelForm is ok) HOT 1
- Cropping Not working when integrating my App to Azure Blob Storage HOT 1
- Image Cropping from URL HOT 3
- the image display is not updated when changing it from the admin
- AWS S3 can't find cropped image HOT 1
- Cropping Tool is only a text box HOT 3
- django-image-cropping not working with django 3.2.8 HOT 4
- Django 4 support HOT 3
- Doesn't allow me to crop until after I've already added a record
- Widget not showing on admin side
- Crop area is not recorded on object creation in Django Admin for Proxy models
- using CropForeignKeyWidget with django-filer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-image-cropping.