Coder Social home page Coder Social logo

fish2000 / django-imagekit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matthewwithanm/django-imagekit

5.0 5.0 0.0 9.13 MB

Fork of JDriscoll's django image-processing toolkit, with metadata support, ICC color management, and image statistics

Home Page: https://github.com/fish2000/django-imagekit

License: BSD 3-Clause "New" or "Revised" License

C++ 0.03% C 36.40% JavaScript 20.26% Python 43.32%

django-imagekit's People

Contributors

bjj avatar fish2000 avatar ingenieroariel avatar jdriscoll avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

django-imagekit's Issues

Subtle changes to processors.pyx makes the module segfault all over itself

I had high hopes for this code (which has since been reverted):

https://github.com/fish2000/django-imagekit/blob/09355257e47bcf92f810e8be8aa9279028308bc9/imagekit/ext/processors.pyx

... on OSX, running the tests after compiling this stuff would result in the python interpreter segfaulting its pants (error matthewwithanm#11 specifically) at some point between the call to imagekit.ext.Atkinsonify and the sys.exit(0) I have at the end of the runner script.

Execution of the same on Debian Sarge halts at the first call into cython, segfaulting everywhere. Check it out:

objectsinspaceandtime:django-imagekit-f2k[cython-develop •]$ python ./imagekit/tests.py
*** Starting test Redis server instance (pid = 18411)
nosetests --verbosity 2 imagekit.tests:IKTest --rednose --nocapture --nologcapture
Creating test database for alias 'default' ('/tmp/tmptjwk7a/imagekit-test.db')...
Destroying old test database 'default'...
Creating tables ...
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table django_admin_log
Creating table signalqueue_enqueuedsignal
Creating table signalqueue_workerexceptionlog
Creating table imagekit_proof
Creating table imagekit_lumahistogram
Creating table imagekit_rgbhistogram
Creating table imagekit_iccmodel
Creating table imagekit_testimage
Creating table imagekit_testimagem
Installing custom SQL ...
Installing indexes ...
No fixtures found.
test_atkinsonizer (imagekit.tests.IKTest) ... 
Loading image: http://ost2.s3.amazonaws.com/images/_uploads/P4141870.jpg
2011-10-25 01:00:11,067 [INFO] imagekit: Applying processors: SmarterCropped
2011-10-25 01:00:11,068 [INFO] imagekit: *** creating: cache/testimages/test_smartercropped.jpeg
2011-10-25 01:00:11,089 [INFO] imagekit: Applying processors: SmarterCropped, Atkinsonify
2011-10-25 01:00:11,090 [INFO] imagekit: +++ Atkinsonify processing with <type 'imagekit.ext.processors.Atkinsonify'>
*** glibc detected *** python: munmap_chunk(): invalid pointer: 0x00000000128d6b60 ***
======= Backtrace: =========
/lib/libc.so.6(+0x71ad6)[0x2b4a0ea63ad6]
/usr/local/lib/python2.7/site-packages/numpy/core/multiarray.so(+0xc2b7d)[0x2b4a1a5b9b7d]
/home/fish/Dropbox/imagekit/django-imagekit-f2k/imagekit/ext/processors.so(+0x11ac3)[0x2b4a20f72ac3]
/usr/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x59a9)[0x2b4a0de6b489]
/usr/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x8a8)[0x2b4a0de6cfa8]
/usr/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5992)[0x2b4a0de6b472]
/usr/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6bda)[0x2b4a0de6c6ba]

Apparently, glibc was detected! On my server, this whole time... the horror.

Srsly, if you're a cython grand-master and you have some time to kill, tell we what I did wrong in there. Thx.

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.