Custom Size for Highlight url in GetTree?

blackgold9blackgold9 Registered Users Posts: 52 Big grins
I can retrive a thumbURL or smallURL for an albums highlight image via the extras parameter in getTree.
Is it possible to retrieve a url for a custom size ? (250x250 for example)

Thanks,
Stephen

Comments

  • SamirDSamirD Registered Users Posts: 3,474 Major grins
    edited June 7, 2011
    You can make any url a custom size by changing the parameters in the url. I don't remember them off the top of my head now that the url format has changed, but it's a matter of replacing the S/M/L with a size in pixels.

    The old format was:
    http://redbaronphoto.huntsvillecarscene.com/photos/1061665698_nps7N-166x1000.jpg
    
    from an original url of:
    http://redbaronphoto.huntsvillecarscene.com/photos/1061665698_nps7N-M.jpg
    

    In this example a 250x250 would be:
    http://redbaronphoto.huntsvillecarscene.com/photos/1061665698_nps7N-250x250.jpg
    
    Pictures and Videos of the Huntsville Car Scene: www.huntsvillecarscene.com
    Want faster uploading? Vote for FTP!
  • blackgold9blackgold9 Registered Users Posts: 52 Big grins
    edited June 7, 2011
    SamirD wrote: »
    You can make any url a custom size by changing the parameters in the url. I don't remember them off the top of my head now that the url format has changed, but it's a matter of replacing the S/M/L with a size in pixels.

    The old format was:
    http://redbaronphoto.huntsvillecarscene.com/photos/1061665698_nps7N-166x1000.jpg
    
    from an original url of:
    http://redbaronphoto.huntsvillecarscene.com/photos/1061665698_nps7N-M.jpg
    

    In this example a 250x250 would be:
    http://redbaronphoto.huntsvillecarscene.com/photos/1061665698_nps7N-250x250.jpg
    

    The problem i have with that method is that in the past I've run into oddities like files ending with Th-1.jpg, and that's tripped up my modification code. Being able to specify the size upfront guarantees i get what i need.
  • SamirDSamirD Registered Users Posts: 3,474 Major grins
    edited June 8, 2011
    How did that trip up your code? headscratch.gif There's just the Th that needs to be replaced with the size. Apparently that's what I've been doing, like in this one:
    http://newpics.huntsvillecarscene.com/photos/1153352484_aB7Ff-166x1000-1.jpg
    
    with a normal size url being
    http://newpics.huntsvillecarscene.com/photos/1153352484_aB7Ff-M-1.jpg
    
    I'm sure the new format will work too.

    If you don't mind sharing that part of your code, I'll help however I can. thumb.gif
    Pictures and Videos of the Huntsville Car Scene: www.huntsvillecarscene.com
    Want faster uploading? Vote for FTP!
  • blackgold9blackgold9 Registered Users Posts: 52 Big grins
    edited June 9, 2011
    My issue hasn't been the code doesn't work, but rather that the new url does not load an actual image (when ending with M-1.jpg for instance);
  • SamirDSamirD Registered Users Posts: 3,474 Major grins
    edited June 9, 2011
    blackgold9 wrote: »
    My issue hasn't been the code doesn't work, but rather that the new url does not load an actual image (when ending with M-1.jpg for instance);
    Hmmm...do you have an example. headscratch.gif
    Pictures and Videos of the Huntsville Car Scene: www.huntsvillecarscene.com
    Want faster uploading? Vote for FTP!
Sign In or Register to comment.