SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Cropping Images

  1. #1
    SitePoint Zealot ohnnyj's Avatar
    Join Date
    Jun 2003
    Location
    California
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cropping Images

    Hello all:

    Is it possible to crop images as you create thumbnails for them? The reason I ask is that it would help in my CSS since I would know how large images were either by the largest possible width or height. I could then have two classes, one for landscape images and one for tall images, which would allow me to control their formatting much more easily. When creating them with the GD functions it shrinks them to a specified size but I am not sure if a crop is possible.

    Thanks.

  2. #2
    Free your mind Toly's Avatar
    Join Date
    Sep 2001
    Location
    Panama
    Posts
    2,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, it is possible to crop images. Take a look at this class.
    Community Guidelines | Community FAQ

    "He that is kind is free, though he is a slave;
    he that is evil is a slave, though he be a king." - St. Augustine


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •