Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cropping images to black #152

Open
ajit-hi opened this issue Jun 25, 2020 · 1 comment
Open

Cropping images to black #152

ajit-hi opened this issue Jun 25, 2020 · 1 comment

Comments

@ajit-hi
Copy link

ajit-hi commented Jun 25, 2020

Hello
I m using django-image-cropping with this config

In models.py
first_banner_image_cropped = ImageRatioField('first_banner_image', '976x535', allow_fullsize=True)

in Admin.py

class HomePageExtensionAdmin(FrontendEditableAdminMixin,ImageCroppingMixin, PageExtensionAdmin): . . . admin.site.register(HomePageExtension, HomePageExtensionAdmin)

settings.py

THUMBNAIL_PROCESSORS = ( 'easy_thumbnails.processors.colorspace', 'easy_thumbnails.processors.autocrop', 'filer.thumbnail_processors.scale_and_crop_with_subject_location', 'easy_thumbnails.processors.filters', 'image_cropping.thumbnail_processors.crop_corners', ) + thumbnail_settings.THUMBNAIL_PROCESSORS

but when I m selecting an image of size 6000x4000 , the resulting cropped image comes black.

Why is this issue coming is this a configuration issue or library issue.

@MRigal
Copy link
Contributor

MRigal commented Oct 7, 2020

Hi @ajit-hi
Have you tried trying to resize it directly using PIL? Which version of PIL is installed? Maybe try to update this one first. Also tell us which version of django-image-cropping and easy_thumbnails you are using

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants