Giter Club home page Giter Club logo

Comments (2)

moskrc avatar moskrc commented on June 16, 2024

I see an error:

  File "/Users/vit/.virtualenvs/oboiray/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/Users/vit/projects/oboiray.ru/oboi/shared/django_images/views.py", line 12, in thumbnail
    return redirect(models.Thumbnail.objects.get_or_create_at_size(image.id, size))
  File "/Users/vit/projects/oboiray.ru/oboi/shared/django_images/models.py", line 84, in get_or_create_at_size
    thumbnail = image.thumbnail_set.create(size=size, image=thumb_file)
  File "/Users/vit/.virtualenvs/oboiray/lib/python2.7/site-packages/django/db/models/fields/related.py", line 485, in create
    return super(RelatedManager, self.db_manager(db)).create(**kwargs)
  File "/Users/vit/.virtualenvs/oboiray/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create
    return self.get_query_set().create(**kwargs)
  File "/Users/vit/.virtualenvs/oboiray/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create
    obj = self.model(**kwargs)
  File "/Users/vit/.virtualenvs/oboiray/lib/python2.7/site-packages/django/db/models/base.py", line 369, in __init__
    signals.post_init.send(sender=self.__class__, instance=self)
  File "/Users/vit/.virtualenvs/oboiray/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/Users/vit/.virtualenvs/oboiray/lib/python2.7/site-packages/django/db/models/fields/files.py", line 378, in update_dimension_fields
    width = file.width
  File "/Users/vit/.virtualenvs/oboiray/lib/python2.7/site-packages/django/core/files/images.py", line 15, in _get_width
    return self._get_image_dimensions()[0]
TypeError: 'NoneType' object is not subscriptable

from django-images.

patrys avatar patrys commented on June 16, 2024

Try filing a bug in PIL as it seems unable to open the image in question.

from django-images.

Related Issues (10)

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.