Giter VIP home page Giter VIP logo

asaglimbeni / clean-image-crop-uploader Goto Github PK

View Code? Open in Web Editor NEW
40.0 40.0 36.0 816 KB

Clean Image Crop Uploader (CICU) provides AJAX file upload and image CROP functionalities for ImageFields with a simple widget replacement in the form. It use Modal from twitter-bootstrap.

Home Page: http://asaglimbeni.github.com/clean-image-crop-uploader/

License: Other

Python 23.07% CSS 5.91% JavaScript 71.02%

clean-image-crop-uploader's People

Contributors

asaglimbeni avatar knicholes avatar smamaxs avatar sylvaingd avatar taivo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

clean-image-crop-uploader's Issues

How to integrate it with admin

I am having issues in integrating CICU with django admin imagefield upload.

Do advice in order to integrate it successfully.

Thanks in advance.

Boostrap 3?

Hey,

Looks like an awesome library, but can not get it to work...
Is this working on bootstrap 3 library?

Autodiscover can be load from Django

The Autodiscover Script :

<script> $(function() { CicuWidget.autoDiscover(); }); </script>

It can be load by Django render widget. This fix can simplify the configuration process of widget.

Hardcoded image field name

Method value_from_datadict(self, data, files, name) in widgets.py has hardcoded image field name:

uploaded_file = UploadedFile.objects.get(id=data.get('image'))

It works with example but when you specify other name like:

widgets = {
    'picture': CicuUploderInput(options=cicuOptions)
}

it breaks.

Not able to install

I am getting the following error!

Collecting clean-image-crop-uploader
  Using cached clean-image-crop-uploader-0.2.2.tar.gz
Collecting PIL==1.1.7 (from clean-image-crop-uploader)
  Could not find a version that satisfies the requirement PIL==1.1.7 (from clean-image-crop-uploader) (from versions: )
No matching distribution found for PIL==1.1.7 (from clean-image-crop-uploader)

Max length issue

Better error message when getting: "Data truncated for column 'file' at row 1". It could be "Filename exceeded" or something like that.

Would you consider setting max_length=255 instead of default (100)?

Restriction to one CicuUploderInput in Form

CICU won't work if you specify more than one filed with CicuUploderInput in your form:

widgets = {
     'picture': CicuUploderInput(options=cicuOptions),
     'picture_2': CicuUploderInput(options=cicuOptions)
}

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.