Results 1 to 3 of 3

Thread: How to do image mapping

  1. #1

    Thread Starter
    Hyperactive Member AvisSoft's Avatar
    Join Date
    Sep 2002
    Location
    Chandigarh
    Posts
    459

    Question How to do image mapping

    Hello,

    I have a image of 1000 x 1000 pixels. Now the thing i want to do is...i will be getting small images from customers whcih i have to put in the big 1000x1000 image.

    I can do it manually by opening big image and small images and then copy/paste the small image in big image.

    I just wanted to know that how can i do this through php ? i mean i want to cut out the manual labour...users simply upload their image and it gets into the main big image.

    So, I know how to upload a image in php.

    I just want to know how can i put the small image into the big image ?

    Thanks.
    Tapan Bhanot,
    CEO, Avis Software.
    Website: www.avissoftware.com

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: How to do image mapping

    It depends how many images you have and what shape they are. If the are all rectangular with uniform sizes then you can probably use an HTML image map and that way the images never need to be stiched together.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3

    Thread Starter
    Hyperactive Member AvisSoft's Avatar
    Join Date
    Sep 2002
    Location
    Chandigarh
    Posts
    459

    Re: How to do image mapping

    Hi,

    The big image has 100 pixels blocks. So the small images can be of any number of blocks. 1 block = 100 pixels (10x10 pixels i.e).

    Now it can be just 1 block or can be any number of blocks. But thats what i am not after right now.

    What i am looking is for that suppose some one sends in a 10x10 = 100 pixel image that is a square how do i paste that image onto the big grid i have without doing any manual labour ?

    I want it all to be done using php. Let me explain the procidure:

    Step 1: User uploads its image is going to be in blocks min will be 1 block and max can be any number of blocks will in any case it will either be a square or a rectangle.

    Step 2: Once uploaded ..the image has to be pasted on the grid which itself is a image.

    Thast it. I am not after right now what is the size etc. I just first wanna know how can i paste the image on to a image using php...

    After that i will do the maths weather its a rectangle etc.

    Thanks.
    Tapan Bhanot,
    CEO, Avis Software.
    Website: www.avissoftware.com

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