SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Evangelist
    Join Date
    Mar 2008
    Posts
    551
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    My webdesigner took me back ten years to the 90s

    Hi all We have a table with a form below a scanned image of a form above it. As the form fields in the form are filled out the scanned form is filled out via js. We initially had the scanned form image as the background and used absolutely positioned divs to define where the text was displayed.

    This is quite a big image so we looked at ways to optimize it. My web designer decided it was a good idea to cut up the image (splicing) and put it back together using a table with tr and tds. This produced 37 little images and seems completely mad to me and that means 37 http requests which can't be good.

    I thought about spriting the background images, that may help somewhat?

    What is the solution? Thank-you!

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,585
    Mentioned
    411 Post(s)
    Tagged
    6 Thread(s)
    I can't really understand what you are describing. How 'about a link?

  3. #3
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Bayliss Trevor View Post
    What is the solution?
    I wouldn't have a scanned image of the form because as I'm reading your description I'm thinking WTF? But as Ralph says, it's hard to grasp what's really going on without seeing a link.

  4. #4
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    It sounds like an OCR scan of a form has been used and is now effectively an image map or at the least been converted into a TABLE layout in either case it seems a crazy solution.

  5. #5
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,775
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    This produced 37 little images
    Unless you've managed to optimise the original image by using repeating sections then slicing one image into 37 images is not going to make the file smaller. It's going to make it bigger.

    Sprites will reduce the http requests but if all the sprites are just sliced bits of the original image then why bother slicing in the first place?

    Of course placing text on a fixed background image is not a good idea because it will break if users have a different font-size to the one that you expect.

    As others have said we'd need to see what image you are talking about to give more precise answers.


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
  •