Options

Cropping dynamically

burnburn Registered Users Posts: 7 Beginner grinner
Hi All,

I dig around a bit to see if I could find something on this. I would like to be able to crop images when I load them from smugmug (to make square thumbs etc.). I saw there is a crop method, but couldn't find the exact parameters, and I'm guessing it crops the image permanently. I just want to crop it when displaying, but leave the original alone.

I can probably do this with CSS, but thought I'd ask.

Thanks!!

- Mark

Comments

  • Options
    AllenAllen Registered Users Posts: 10,012 Major grins
    edited August 16, 2007
    burn wrote:
    Hi All,

    I dig around a bit to see if I could find something on this. I would like to be able to crop images when I load them from smugmug (to make square thumbs etc.). I saw there is a crop method, but couldn't find the exact parameters, and I'm guessing it crops the image permanently. I just want to crop it when displaying, but leave the original alone.

    I can probably do this with CSS, but thought I'd ask.

    Thanks!!

    - Mark
    Are you only referring to the thumbnails? See this thread.
    Al - Just a volunteer here having fun
    My Website index | My Blog
  • Options
    burnburn Registered Users Posts: 7 Beginner grinner
    edited August 17, 2007
    Allen wrote:
    Are you only referring to the thumbnails? See this thread.
    I read thru part of that thread - will read more today (it's very long!!) :D

    What I would like to do is retrieve images like this:

    http://<nickname>.smugmug.com/photos/<imageId>-300x300.jpg and have it scale and crop the photo to fit both dimensions. Right now, it just scales, but retains the aspect ratio of the image (if it's a rectangle, for example).

    I just want squares. <img src="https://us.v-cdn.net/6029383/emoji/headscratch.gif&quot; border="0" alt="" >

    Thanks for any input!

    - Mark
  • Options
    burnburn Registered Users Posts: 7 Beginner grinner
    edited August 17, 2007
    BTW, this is for loading photos on my own (non-smugmug) site.

    The bulk thumbnail resizer looks great, but I need larger images.

    Thanks!

    - Mark
Sign In or Register to comment.