As a former PHP programmer who's switched to Django - Trying to modify the administration app can be hard. It's something I still stay away from because I feel once you start adding functionality that doesn't come working out of the box, you're better off building your own admin app. I don't think this is a strike against Django though. It offers a completely optional admin app that you can use to quickly populate some data or not use at all. In fact you could use it solely for uploading your images and then build a completely separate view outside of the admin to handle the jcrop resizing.
Using jcrap in any normal view in Django should be just as easy really as in PHP. Just use PIL/Pillow like someone has already stated. And handling it in the admin really shouldn't be too hard but it'll require learning the ins and outs of how that specific app works. On Wednesday, June 26, 2013 3:48:12 AM UTC-7, thomaaaas wrote: > > An easy way to integrate Jcrop in Django's admin? > > Hello, > > I'm new in the Django world, and I have a question regarding image > resizing. > > What I'm trying to do: > 1) A user upload an image in the admin > 2) He is shown the Jcrop interface to crop the image, and submit the form > 3) The original image and the cropped one are stored in imagefields > > I know there are some open source projects that are doing this > (django-cropper or django-image-cropping) but I want to do it by myself. > > I have a PHP background, where this kind of things where really easy to > do. But it seems that it's a lot more difficult to achieve in Django, which > makes me doubt about my idea to learn Django... > > Any advice on how to do this in a simple way? > Thanks! > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.