Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7508997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:47:03+00:00 2026-05-29T22:47:03+00:00

I am using sorl thumbnail for the first time. I am working with Low

  • 0

I am using sorl thumbnail for the first time. I am working with Low Level API and using the get_thumbnail method.

As per the link, I successfully used im = get_thumbnail(my_file, '100x100', crop='center', quality=99), but I would like to specify the destination source location and the filename as well. Is that possible? How do I do that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T22:47:04+00:00Added an answer on May 29, 2026 at 10:47 pm

    Short answer: you can’t. The path and filename are generated by sorl and directly relate to how the thumbnail paths and their files are cached, and stored.

    If you look at the actual method in sorl that gets or creates the thumbnail:

    https://github.com/sorl/sorl-thumbnail/blob/master/sorl/thumbnail/base.py#L32

    you’ll see that the destinatation and filename of the created thumbnail is a hash value of the source filename, source location, source dimensions and source options. It creates this hash, checks the cache to see a value for that hash/key is present, if it is – return the path corresponding to that thumbnail, if not – generates the thumbnail, save it and cache the path.

    Therefore changing the destination of the filename would mean you could no longer retrieve that thumbnail from the cache.

    The only thing you can change is the root folder of where you want these files to be saved i.e. under /cache/... or /thumbnails/...

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using sorl-thumbnail in a Django 1.2 (currently 1.2 RC) project and getting a
im using the new version of Sorl-thumbnail, but i cant show thumbs in django
I am currently using sorl-thumbnail and have a model. class Entry(models.Model): image = ImageWithThumbnailsField(upload_to='uploads/',
I'm using sorl thumbnail with Django. On my local setup it works fine, but
I can't work out if it's possible to create the following thumbnail using sorl-thumbnail
Using Rails 3.2.0 with haml and sass: I Would like to link an external
Using the HTML5 File API I can get the Binary String representation of a
I setup sorl-thumbnail according to instructions, but none of the images are appearing when
Using gcc and ld on x86_64 linux I need to link against a newer
Using of mobile dialog authentication is working well for other mobile devices except on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.