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

different image than source with get_thumbnailer? #529

Open
jomopeh opened this issue Nov 29, 2017 · 0 comments
Open

different image than source with get_thumbnailer? #529

jomopeh opened this issue Nov 29, 2017 · 0 comments

Comments

@jomopeh
Copy link

jomopeh commented Nov 29, 2017

For each image I upload, I'm using get_thumbnailer on that source image and returning the url, which in my case will link to S3.

on model:

image = ImageField(upload_to='images')

then "image" is passed to get_thumbnail:

get_thumbnail(image, '200', crop='center', quality=99).url

{
image_url: instance.image.url,
thumbnail_url: get_thumbnail(instance.image, '200', crop='center', quality=99).url 
}

the image that "thumbnail_url" points to is not the same as "thumbnail_url"?????

My question is, without going through all the details, is there a possibility that sorl thumbnail via the get_thumbnailer method will render/use a different image than the source image, even though I reference that image field?
I understand sorl-thumbnail uses the key value architecture as a cache store, which I assume is unique and there will not be any name conflicts.

(I actually have a use case, where uploading images works consistently when uploading through either android or desktop browsers, but apparently if it's uploaded through iOS browser then issues such as I described above appears. I'm actually wondering whether this is a problem with django storages s3 instead, or some issue on the client).

Thanks for any feedback

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

1 participant