Results 1 to 5 of 5

Thread: Image size

  1. #1
    Join Date
    Nov 2006
    Posts
    116
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Image size

    1) Script Title: Popup image viewer

    2) Script URL (on DD): http://www.dynamicdrive.com/style/cs...-image-viewer/

    3) Describe problem: The script works great but the popup images that i have are of different sizes and i wish to decrease the sixze of the images by the % and not the pixcel.
    Is it possible?

    Just found out that % works in IE but not in FF. How can i make it work in FF as well?
    Last edited by Bornfree; 06-06-2007 at 11:02 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You are much better off editing your images in an image editing program to produce a pair of images for each. Make one thumbnail sized and the other the desired full size. Using the browser to reduce images results in additional overhead and often in poor image quality - not to mention problems like you are experiencing in cross browser implementation.

    I'll throw this in, just in case I misunderstood your question - if you want your images to scale to the text size of the user, set their dimensions in ems. You will still need separate thumbnail and full sized versions for each image though.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Nov 2006
    Posts
    116
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    HI Jscheuer,


    Thanks for your help. But i already have a thumbnail image (all of them the same size) But it is the popup image that i want to resize. All the popup images are quite big and all i want is to down size it by 80% or something. I works in IE but not in FF (In FF it takes the value 80 as px instead os %) Does it mean that % doesn't work in FF?

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    % normally works in FF, it depends upon how you are using it. The thing to do however, is to resize all your larger images in an image editing program to be the size that you really want them to be. It will save so much bandwidth/load time. Be sure to keep copies of those huge original images locally though, in case you need them later for anything.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Nov 2006
    Posts
    116
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    Thanks a lot for your advice. I guess i will do just that now

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
  •