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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:30:48+00:00 2026-05-26T19:30:48+00:00

On my server, I have three files per image. A thumbnail file, which is

  • 0

On my server, I have three files per image.

  • A thumbnail file, which is cropped to 128 by 128.
  • A small file, which I aspect fit to a max of 160 by 240.
  • A large file, which I aspect fit to a max of 960 by 540.

My method for returning these URLs to three20’s gallery looks like this:

- (NSString*)URLForVersion:(TTPhotoVersion)version {
    switch (version) {
        case TTPhotoVersionLarge:
            return _urlLarge;
        case TTPhotoVersionMedium:
            return _urlSmall;
        case TTPhotoVersionSmall:
            return _urlSmall;
        case TTPhotoVersionThumbnail:
            return _urlThumb;
        default:
            return nil;
    }
}

After having logged when these various values are called, the following happens:

  1. When the thumbnail page loads, only thumbnails are called (as expected)
  2. When an image is tapped, the thumbnail appears, and not the small image.
  3. After that thumbnail appears, the large image is loaded directly (without the small image being displayed).

What I desire to happen is the following

  1. This is the same (thumbnails load as expected on the main page)
  2. When the image is tapped, the small image is loaded first
  3. Then after that, the large image is loaded.

Or, the following

  1. Thumbnails
  2. Straight to large image.

The problem with the thumb, is that I crop it so it is a square.

This means that when a thumbnail image is displayed in the main viewer (after thumb was tapped), it is oversized, and when the large image loads, it immediately scales down to fit.

That looks really bad, and to me, it would make far more sense if it loaded the thumbs in the thumbnail view, and then the small image followed by the large image in the detail view.

Does anyone have any suggestions on how to fix this?
Is the best way simply to make the thumbs the same aspect ratio?

I would appreciate any advice on this issue

  • 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-26T19:30:48+00:00Added an answer on May 26, 2026 at 7:30 pm

    Looking at the three20 source I can see that TTPhotoView loads the preview image using the following logic:

    - (BOOL)loadPreview:(BOOL)fromNetwork {
      if (![self loadVersion:TTPhotoVersionLarge fromNetwork:NO]) {
        if (![self loadVersion:TTPhotoVersionSmall fromNetwork:NO]) {
          if (![self loadVersion:TTPhotoVersionThumbnail fromNetwork:fromNetwork]) {
            return NO;
          }
        }
      }
      return YES;
    }
    

    The problem is that as your small image is on the server and not locally the code skips the image and uses the Thumbnail for the preview.

    I would suggest that your best solution would be to edit the thumbnails so that they have the same aspect ratio as the large images. This is what the developer of this class seems to have expected!

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

Sidebar

Related Questions

I have three solutions which build two clients and a server, and share many
I have a three-tier application which is installed in corporate environments. With every server
I have a table in SQL Server 2005 which has three columns: id (int),
I have a image file stored at a remote server (i.e http://example.com/images).The images in
On the SVN server, there is a file called config.conf . I have a
So, I have three server, and the idea was to keep all media (images,
I have three Windows Server 2003 with 2 GB RAM. Server1 tomcat 5.5.25 jvm
So we have three FLEX controls hosted within a JBOSS server instance, and an
I have a three tier system, SQL Server backend, hand written data access layer,
I have installed SQL Server 2005 three times now on the same box. I

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.