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 6620777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:08:57+00:00 2026-05-25T21:08:57+00:00

Until now all my thumbnails have been 150×150. I would like to support different

  • 0

Until now all my thumbnails have been 150×150. I would like to support different thumbnail sizes, in order to deal with different Android/iPhone models.

I have been considering this way of supporting multiple sizes. Always working with square thumbnails to makes things simpler.

Obtaining a 75×75 thumbnail

GET http://example.com/gallery?resolution=75
...
{
    "id": 1001,
    "thumbnail": "http://lh5.ggpht.com/EEIl3_hedJSAT4RscoceShtWy3DE4WGKXXNp4rusI-kpzWfDIbzrWx1KVywf9YqGI-elD_k4xg8bUemeRTtLgtAPOlVc0kpw=s75"
}

Obtaining a 150×150 thumbnail

GET http://example.com/gallery?resolution=150
...
{
    "id": 1001,
    "thumbnail": "http://lh5.ggpht.com/EEIl3_hedJSAT4RscoceShtWy3DE4WGKXXNp4rusI-kpzWfDIbzrWx1KVywf9YqGI-elD_k4xg8bUemeRTtLgtAPOlVc0kpw=s150"
}

I have seen seen a lot of api’s that doesn’t support custom sizes, e.g. the flickr api support small, medium, large and original size.

Can this api be improved somehow?

  • 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-25T21:08:58+00:00Added an answer on May 25, 2026 at 9:08 pm

    Well you could have fixed values like the Flickr API (Small, Medium, Large and Original). What you could do is pre-render and store them which means you can directly grab them off the disk or cache rather than rendering them on the fly. Your Request URL can then look something like:

    GET http://example.com/gallery?resolution=small
    

    However if you want to provide the most flexibility, you should continue with the way you are doing the API now and allow the API User to specify the square size. You should have a fixed maximum built in to stop abuse. An example of this would be the Gravatar API which has a fixed maximum of 512px and size can be specified with the s= parameter in the URL.

    At the end it depends on your cost/benefit ratio. Would it be substantially more difficult to maintain a flexible size API rather than a pre-rendered fixed size(s) API and does rendering on the fly need more investment in Servers/RAM/Bandwidth etc.

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

Sidebar

Related Questions

Up until now i've been dropping all my jquery code right inside the document.ready
Up until now, we've all been hosting our mercurial repositories and pulling directly from
First of all, until now, all my programming education, has been targeted to console
twitteroauth has been fantastic up until now, but I'm having trouble gathering all of
I'm a ClearCase newbie and up until now have been used to SVN. Therefore,
I have alert boxes all around my site, that have been working up until
I have done all of my Flash applications up until now with the Flash
Up until now, I have always been using JSP to display pages. When a
dear all.i newbie at web programming and until now i still have learn about
I have been using WebForms until now and now wish to learn MVC. However

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.