Professional Web Applications Themes

<img width > in apache - PHP Development

Hi, to show a big picture on a web page i divided it into pieces and put them together in a table: <table> <tr> <td> <a href="part1.jpg"> <img src="part1.jpg" width="150"> </a> to load a chosen part in original size one has to click on it. Yet loading of a whole table is still very slow. Does the width transformation occur on a client side !!! ? Still if it's made by apache on server side how time-effective it is ? Surely it's better to prepare part[1-n].jpg as part[1-n].smaller.jpg in smaller sizes, but i have a lot pictures, so I am ...

  1. #1

    Default <img width > in apache

    Hi,
    to show a big picture on a web page i divided it into pieces
    and put them together in a table:

    <table>
    <tr>
    <td>
    <a href="part1.jpg">
    <img src="part1.jpg" width="150">
    </a>

    to load a chosen part in original size one has to click on it.
    Yet loading of a whole table is still very slow. Does the width
    transformation occur on a client side !!! ?
    Still if it's made by apache on server side how time-effective it
    is ?
    Surely it's better to prepare part[1-n].jpg as part[1-n].smaller.jpg
    in smaller sizes, but i have a lot pictures, so I am looking for an
    effective automatism. Could somebody help me, please.
    best regards
    zbyszek
    ps: how could one shrink *jpg images in batch
    --
    http://zbyszek.evot.org
    Zbigniew Guest

  2. #2

    Default Re: <img width > in apache

    Zbigniew Lisiecki wrote: 

    Yes its client side.
     

    depends on several factors like server, memory etc.
     

    you could use PHP as long as the graphics library is installed or if you
    are able to execute and install other applications to your server have
    a look at imagemagick.

    Stefan
     
    imagemagick is a good start
    Stefan Guest

  3. #3

    Default Re: <img width > in apache

    Zbigniew Lisiecki a écrit:
     

    I myself wrote an image galery php script that does batch resizing using
    imageMagick as a backend.

    copy(image_file, $thumbnail_file);
    $thumb_size = '100x100';
    $command = "$PATH_TO_IMAGEMAGICK/mogrify -size $thumb_size -resize
    $thumb_size +profile \"*\" \"$thumbnail_file);\" ";
    exec($command);

    It's amazingly fast.

    But you have to install imageMagick first.

    A must.


    --
    Cogito ergo sum... et tralala
    Marc Nadeau, webmestre, La Pagerie, http://www.pagerie.com
    Marc Guest

Similar Threads

  1. Replies: 1
    Last Post: October 7th, 06:18 AM
  2. DG Column Width vs Table Column Width
    By Carl Howarth in forum ASP.NET Data Grid Control
    Replies: 1
    Last Post: October 24th, 08:48 AM
  3. Replies: 0
    Last Post: August 4th, 05:44 PM
  4. Replies: 0
    Last Post: July 29th, 11:44 AM
  5. Replies: 2
    Last Post: July 27th, 05:29 PM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139