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

  • Home
  • SEARCH
  • 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 6255411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:21:36+00:00 2026-05-24T14:21:36+00:00

When I use the save method in PIL to save a file, it saves

  • 0

When I use the save method in PIL to save a file, it saves it by the right file name I provide, but on clicking on the file name the path shows to be different. (Sorry, my explanation sucks).

For example, if u go to http://shopperspoll.webfactional.com/media/images/emailTemplate/mergedImages/
there is an image named “7962716_41tlK2uT%2BSL.SL75.png”. On clicking on the image though, the name of the file that shows up on the browser changes to “7962716_41tlK2uT%252BSL.SL75.png” with the additional “52” in the file name. I am using image.save(pathName) to save the image.

Thanks!

  • 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-24T14:21:37+00:00Added an answer on May 24, 2026 at 2:21 pm

    As 7962716_41tlK2uT%2BSL.SL75.png is a valid filename, it is saved on your filesystem. The browser urlencodes the filename, so 7962716_41tlK2uT%2BSL.SL75.png becomes 7962716_41tlK2uT%252BSL.SL75.png; the percent sign in your filename becomes %25.

    So PIL does not change your filename, your browser escapes your actual filename. That’s all!

    Given a query with the parameter q, you get:

    >>>urllib.urlencode({'q':'7962716_41tlK2uT%2BSL.SL75.png'}) == "q=7962716_41tlK2uT%252BSL.SL75.png"
    True
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry for some crazy subj. I'd like to override django models save method and
I use the save() method to override the models.Model method in order to manipulate
I'm trying to rename a file after it's uploaded in the model's save method.
When I use, e.g. in C# the image class which implements the Save method,
I have a settings save method I call, but I tried unload, and lost
When create playramework's model we can use save() or _save() method. Why these both
The question is quite simple: when should I use the save:(NSError **)error method of
The GDI+ Image::Save method requires a CLSID parameter to specify the encoder to use.
ActiveRecord use to call after_save callback each time save method is called even if
I'm wondering what the best way is to use the XDocument.load and save methods

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.