Results 1 to 4 of 4

Thread: [RESOLVED] Picture size

  1. #1

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Resolved [RESOLVED] Picture size

    Look here. This is the page I am making right now.

    http://www.noteme.com/doomsharp/screeny.htm

    I want to have a picture to show up on the next page (the next page looks the same) on the left side there inside where it says: "To make this engine....". But the picture might be wider then that box. The box is 454pixels wide. If it is, then I want to shrink it in width, and height. So the ratio is still the same. But how do I first find out how width the picture is? Do I have to open the image file and read the header, or is there any PHP function for this?


    Thanks
    - ØØ -

  2. #2
    Fanatic Member
    Join Date
    Oct 2004
    Posts
    751

    Re: Picture size

    getimagesize
    You should download the chm manual, its been my bible .

    P.S. Where you talking about http://www.noteme.com/doomsharp/screeny.php ?
    Because http://www.noteme.com/doomsharp/screeny.htm is a 404.
    My Projects: [ Instant Messagener Client/Server ] [ VBPictochat ]

    My Sites:
    [ Datanethost ]
    [ Helpdesk ]

    Remember if my post was helpful then Rate This Post.

  3. #3

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Picture size

    ohhh yeah...I changed that after I posted...dumb me.....Thanks I will try it out and tell you how it works out.


    - ØØ -

  4. #4

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Picture size

    It worked like a charm, thanks a lot:
    http://www.noteme.com/doomsharp/divpic7.php



    I am not using PHP often enought these days to be bothered to download that book. But thanks for the tip. Wish there was one like that for Python though.



    Thanks
    - ØØ -

Posting Permissions

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



Click Here to Expand Forum to Full Width