Picture not showing correctly

Discussion in 'HTML' started by mkarja, Dec 17, 2007.

  1. mkarja

    mkarja Guest

    Hi,

    I have setup a apache webserver and have one web site now on it.
    I have couple of problems.

    One is that for some reason the DocRoot index page is showing right,
    but I've created Alias to another folder on my filesystem and that
    doesn't
    show up to the rest of the world. It's showing on my computer when I
    type
    in the address.

    The other problem is that while the folder, pointed to by the Alias
    option,
    shows up, it doesn't show the pictures right. If the picture is small
    enough
    that it fits the screen then it's fine, but if it's bigger than the
    screen it shows
    only a little bit of the picture from the top and the rest of the
    picture is just grey.
    The code is just your normal img tag. <img src="picture.jpg">
    I tried to use height and width attributes to make display smaller
    size, but that
    didn't help.

    I'm not very experienced with apache, so the first one is propably
    related to my
    configuration somehow. I have a d-link wlan router and the computer
    goes thru
    that on the internet. That may also be the problem.
    I've done some html coding before, but I've never had that picture
    problem before.
    Unfortunately I can't give you the url for you to check out, because
    there are
    pictures and not all the people in the pictures want their pictures
    seen by whoever.

    I don't know it this should've been posted to some apache forum, but I
    thought
    that I had an apache and an html problem, so I'd post it here. I'm
    thinking the are
    people here who are familiar with apache also.

    Any help would be appreciated. If you need some more information, I'll
    try to
    provide more details.

    - miKa
     
    mkarja, Dec 17, 2007
    #1
    1. Advertising

  2. mkarja

    Chaddy2222 Guest

    On Dec 18, 12:49 am, mkarja <> wrote:
    > Hi,
    >
    > I have setup a apache webserver and have one web site now on it.
    > I have couple of problems.
    >
    > One is that for some reason the DocRoot index page is showing right,
    > but I've created Alias to another folder on my filesystem and that
    > doesn't
    > show up to the rest of the world. It's showing on my computer when I
    > type
    > in the address.
    >

    <snip>
    You need to place all your directories in the Docroot folder otherwise
    they won't show up.
    --
    Regards Chad. http://freewebdesignonline.org
     
    Chaddy2222, Dec 17, 2007
    #2
    1. Advertising

  3. mkarja

    mkarja Guest

    On 17 joulu, 16:31, Chaddy2222 <spamlovermailbox-
    > wrote:
    > On Dec 18, 12:49 am, mkarja <> wrote:> Hi,
    >
    > <snip>
    > You need to place all your directories in the Docroot folder otherwise
    > they won't show up.
    > --
    > Regards Chad.http://freewebdesignonline.org


    Thanks for the answer.
    So I can't create virtual directories or aliases, that point to some
    other folder in the file system than Docroot?
    So what's the point of aliases and virtual directories then?

    - miKa
     
    mkarja, Dec 17, 2007
    #3
  4. mkarja

    Chaddy2222 Guest

    On Dec 18, 1:38 am, mkarja <> wrote:
    > On 17 joulu, 16:31, Chaddy2222 <spamlovermailbox-
    >
    > > wrote:
    > > On Dec 18, 12:49 am, mkarja <> wrote:> Hi,

    >
    > > <snip>
    > > You need to place all your directories in the Docroot folder otherwise
    > > they won't show up.

    ..
    > So I can't create virtual directories or aliases, that point to some
    > other folder in the file system than Docroot?
    > So what's the point of aliases and virtual directories then?
    >

    You should RTFM on this.
    It (virtual directories) should work on Windows.
    --
    Regards Chad. http://freewebdesignonline.org
     
    Chaddy2222, Dec 17, 2007
    #4
  5. mkarja

    mkarja Guest

    On 17 joulu, 17:03, Chaddy2222 <spamlovermailbox-
    > wrote:
    > On Dec 18, 1:38 am, mkarja <> wrote:> On 17 joulu, 16:31, Chaddy2222 <spamlovermailbox-
    >
    > > > wrote:
    > > > On Dec 18, 12:49 am, mkarja <> wrote:> Hi,

    >
    > You should RTFM on this.
    > It (virtual directories) should work on Windows.
    > --
    > Regards Chad.http://freewebdesignonline.org


    OK, thanks for that enlightening answer.
    I will RTFM tonight, just started the server thing yesterday and
    didn't have too much time then
    and I'm at work now so can't spend much time on reading any manuals
    that isn't connected to my work.

    But it's good to know that virtual directories work.

    - miKa
     
    mkarja, Dec 17, 2007
    #5
  6. mkarja wrote:
    > Hi,
    >
    > I have setup a apache webserver and have one web site now on it.
    > I have couple of problems.
    >
    > One is that for some reason the DocRoot index page is showing right,
    > but I've created Alias to another folder on my filesystem and that
    > doesn't
    > show up to the rest of the world. It's showing on my computer when I
    > type
    > in the address.
    >
    > The other problem is that while the folder, pointed to by the Alias
    > option,
    > shows up, it doesn't show the pictures right. If the picture is small
    > enough
    > that it fits the screen then it's fine, but if it's bigger than the
    > screen it shows
    > only a little bit of the picture from the top and the rest of the
    > picture is just grey.
    > The code is just your normal img tag. <img src="picture.jpg">
    > I tried to use height and width attributes to make display smaller
    > size, but that
    > didn't help.
    >
    > I'm not very experienced with apache, so the first one is propably
    > related to my
    > configuration somehow. I have a d-link wlan router and the computer
    > goes thru
    > that on the internet. That may also be the problem.
    > I've done some html coding before, but I've never had that picture
    > problem before.
    > Unfortunately I can't give you the url for you to check out, because
    > there are
    > pictures and not all the people in the pictures want their pictures
    > seen by whoever.
    >
    > I don't know it this should've been posted to some apache forum, but I
    > thought
    > that I had an apache and an html problem, so I'd post it here. I'm
    > thinking the are
    > people here who are familiar with apache also.



    No this is an apache configuration problem.

    alt.apache.configuration or comp.infosystems.www.servers.unix

    All depends on where and how you created the alias and the file
    permissions on target folder. Corrupted jpegs seems to be another issue.

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
     
    Jonathan N. Little, Dec 17, 2007
    #6
  7. mkarja

    mkarja Guest

    On 17 joulu, 18:55, "Jonathan N. Little" <>
    wrote:
    > mkarja wrote:
    > > Hi,

    >
    > > I have setup a apache webserver and have one web site now on it.
    > > I have couple of problems.

    >
    > > One is that for some reason the DocRoot index page is showing right,
    > > but I've created Alias to another folder on my filesystem and that
    > > doesn't
    > > show up to the rest of the world. It's showing on my computer when I
    > > type
    > > in the address.

    >
    > > The other problem is that while the folder, pointed to by the Alias
    > > option,
    > > shows up, it doesn't show the pictures right. If the picture is small
    > > enough
    > > that it fits the screen then it's fine, but if it's bigger than the
    > > screen it shows
    > > only a little bit of the picture from the top and the rest of the
    > > picture is just grey.
    > > The code is just your normal img tag. <img src="picture.jpg">
    > > I tried to use height and width attributes to make display smaller
    > > size, but that
    > > didn't help.

    >
    > > I'm not very experienced with apache, so the first one is propably
    > > related to my
    > > configuration somehow. I have a d-link wlan router and the computer
    > > goes thru
    > > that on the internet. That may also be the problem.
    > > I've done some html coding before, but I've never had that picture
    > > problem before.
    > > Unfortunately I can't give you the url for you to check out, because
    > > there are
    > > pictures and not all the people in the pictures want their pictures
    > > seen by whoever.

    >
    > > I don't know it this should've been posted to some apache forum, but I
    > > thought
    > > that I had an apache and an html problem, so I'd post it here. I'm
    > > thinking the are
    > > people here who are familiar with apache also.

    >
    > No this is an apache configuration problem.
    >
    > alt.apache.configuration or comp.infosystems.www.servers.unix
    >
    > All depends on where and how you created the alias and the file
    > permissions on target folder. Corrupted jpegs seems to be another issue.
    >
    > --
    > Take care,
    >
    > Jonathan
    > -------------------
    > LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com


    Thanks, I'll post this to one of those groups also.

    - miKa
     
    mkarja, Dec 18, 2007
    #7
  8. mkarja

    mkarja Guest

    On 18 joulu, 10:22, mkarja <> wrote:
    > On 17 joulu, 18:55, "Jonathan N. Little" <>
    > wrote:
    >
    >
    >
    > > mkarja wrote:
    > > > Hi,

    >
    > > > I have setup a apache webserver and have one web site now on it.
    > > > I have couple of problems.

    >
    > > > One is that for some reason the DocRoot index page is showing right,
    > > > but I've created Alias to another folder on my filesystem and that
    > > > doesn't
    > > > show up to the rest of the world. It's showing on my computer when I
    > > > type
    > > > in the address.

    >
    > > > The other problem is that while the folder, pointed to by the Alias
    > > > option,
    > > > shows up, it doesn't show the pictures right. If the picture is small
    > > > enough
    > > > that it fits the screen then it's fine, but if it's bigger than the
    > > > screen it shows
    > > > only a little bit of the picture from the top and the rest of the
    > > > picture is just grey.
    > > > The code is just your normal img tag. <img src="picture.jpg">
    > > > I tried to use height and width attributes to make display smaller
    > > > size, but that
    > > > didn't help.

    >
    > > > I'm not very experienced with apache, so the first one is propably
    > > > related to my
    > > > configuration somehow. I have a d-link wlan router and the computer
    > > > goes thru
    > > > that on the internet. That may also be the problem.
    > > > I've done some html coding before, but I've never had that picture
    > > > problem before.
    > > > Unfortunately I can't give you the url for you to check out, because
    > > > there are
    > > > pictures and not all the people in the pictures want their pictures
    > > > seen by whoever.

    >
    > > > I don't know it this should've been posted to some apache forum, but I
    > > > thought
    > > > that I had an apache and an html problem, so I'd post it here. I'm
    > > > thinking the are
    > > > people here who are familiar with apache also.

    >
    > > No this is an apache configuration problem.

    >
    > > alt.apache.configuration or comp.infosystems.www.servers.unix

    >
    > > All depends on where and how you created the alias and the file
    > > permissions on target folder. Corrupted jpegs seems to be another issue.

    >
    > > --
    > > Take care,

    >
    > > Jonathan
    > > -------------------
    > > LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com

    >
    > Thanks, I'll post this to one of those groups also.
    >
    > - miKa


    Anybody have any idea about the images not showing correctly?
    Can it be apache problem that the images only show from top a bit
    and the rest is all grey. Images that fit the screen show up fine.

    - miKa
     
    mkarja, Dec 18, 2007
    #8
  9. mkarja wrote:

    > Anybody have any idea about the images not showing correctly?
    > Can it be apache problem that the images only show from top a bit
    > and the rest is all grey. Images that fit the screen show up fine.


    No, not that I can think of. Sounds like the image is corrupted. If the
    image data is truncated the image is sized in the header so you will get
    the image displayed as far as you have data, but the grey or other
    neutral color for the rest here the data is missing. This is observable
    when you stop loading a web page in a browser when an image is only
    partially downloaded. When you uploaded the image to the server, if you
    used FTP, make sure you are in binary and not ascii mode...



    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
     
    Jonathan N. Little, Dec 18, 2007
    #9
  10. mkarja

    mkarja Guest

    On 19 joulu, 00:59, "Jonathan N. Little" <>
    wrote:
    > mkarja wrote:
    > > Anybody have any idea about the images not showing correctly?
    > > Can it be apache problem that the images only show from top a bit
    > > and the rest is all grey. Images that fit the screen show up fine.

    >
    > No, not that I can think of. Sounds like the image is corrupted. If the
    > image data is truncated the image is sized in the header so you will get
    > the image displayed as far as you have data, but the grey or other
    > neutral color for the rest here the data is missing. This is observable
    > when you stop loading a web page in a browser when an image is only
    > partially downloaded. When you uploaded the image to the server, if you
    > used FTP, make sure you are in binary and not ascii mode...
    >
    > --
    > Take care,
    >
    > Jonathan
    > -------------------
    > LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com


    The image files are on my computer and when I open them in some
    image viewer app they are fine, so I don't "upload" them anywhere,
    I've just copied them to the directory. Oh, and it's windows machine.

    A friend of mine suggested that the images are too big, that the
    server
    timesout when it tries to load them.
    The images are quite big, around 3 megs, but they should still load.
    It really doesn't take that much time to load up the page, when I open
    the site in browser from my own computer.
    You are right though about that it sounds like they just stop loading.

    - miKa
     
    mkarja, Dec 19, 2007
    #10
  11. mkarja wrote:

    > The image files are on my computer and when I open them in some
    > image viewer app they are fine, so I don't "upload" them anywhere,
    > I've just copied them to the directory. Oh, and it's windows machine.
    >
    > A friend of mine suggested that the images are too big, that the
    > server
    > timesout when it tries to load them.
    > The images are quite big, around 3 megs, but they should still load.
    > It really doesn't take that much time to load up the page, when I open
    > the site in browser from my own computer.
    > You are right though about that it sounds like they just stop loading.


    Yep, a timeout error. Hmm 3Mb kind'a big for the web

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
     
    Jonathan N. Little, Dec 19, 2007
    #11
  12. mkarja

    mkarja Guest

    On 19 joulu, 18:45, "Jonathan N. Little" <>
    wrote:
    > mkarja wrote:
    > > The image files are on my computer and when I open them in some
    > > image viewer app they are fine, so I don't "upload" them anywhere,
    > > I've just copied them to the directory. Oh, and it's windows machine.

    >
    > > A friend of mine suggested that the images are too big, that the
    > > server
    > > timesout when it tries to load them.
    > > The images are quite big, around 3 megs, but they should still load.
    > > It really doesn't take that much time to load up the page, when I open
    > > the site in browser from my own computer.
    > > You are right though about that it sounds like they just stop loading.

    >
    > Yep, a timeout error. Hmm 3Mb kind'a big for the web
    >
    > --
    > Take care,
    >
    > Jonathan
    > -------------------
    > LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com


    I resized one image file to 50% of it's original size and still won't
    load
    completely. It does load more of the picture. This time it loads
    about
    half of the picture and then the rest is grey. The size of the
    resized
    image is only 138 kb, so that should load.
    It kinda sounds like a timeout issue, but that image file is so small
    that it should load nicely. I put TimeOut option in the apache
    configuration file and set it to 600 seconds, but it didn't help at
    all.

    - miKa
     
    mkarja, Dec 20, 2007
    #12
  13. mkarja

    dorayme Guest

    In article
    <
    >,

    mkarja <> wrote:

    > On 19 joulu, 18:45, "Jonathan N. Little" <>
    > wrote:
    > > mkarja wrote:
    > > > The image files are on my computer and when I open them in some
    > > > image viewer app they are fine, so I don't "upload" them anywhere,
    > > > I've just copied them to the directory. Oh, and it's windows machine.

    > >
    > > > A friend of mine suggested that the images are too big, that the
    > > > server
    > > > timesout when it tries to load them.
    > > > The images are quite big, around 3 megs, but they should still load.
    > > > It really doesn't take that much time to load up the page, when I open
    > > > the site in browser from my own computer.
    > > > You are right though about that it sounds like they just stop loading.

    > >
    > > Yep, a timeout error. Hmm 3Mb kind'a big for the web
    > >
    > > --
    > > Take care,
    > >
    > > Jonathan
    > > -------------------
    > > LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com

    >
    > I resized one image file to 50% of it's original size and still won't
    > load
    > completely.


    Resize it how? There are a number of things you can do to get the
    thing to be suitable for the web. One of them is not to go bigger
    than anyone can see on their screens. Mostly, to be generous,
    that means not bigger than 1000px wide and not more than about
    800 high. Better to hold such a size in reserve though only for
    those wanting so big (you have a link and tell people what is
    going on). Biggest *surprise* to folks should be about 800 wide,
    600 high. That is one thing, a big determinate of file size but
    only one.

    There is then the question of how to prepare or compress. The end
    result should, unless the user is requesting more, be not more
    than about 120K (to be generous) and better altogether to be
    under 60K for requested enlargements for which you do not provide
    details to the user.

    It is not wise to be loading anything like 1.5MB onto a web page.
    What possible benefits could there be. One would need a screen
    the size of a wall to see it.

    --
    dorayme
     
    dorayme, Dec 20, 2007
    #13
  14. mkarja

    Bergamot Guest

    dorayme wrote:
    >
    > It is not wise to be loading anything like 1.5MB onto a web page.
    > One would need a screen the size of a wall to see it.


    Um, there is no relationship between the dimensions of an image and the
    number of bytes. I can make a full screen size image that's less than
    2KB. Likewise, a 100x200px image can be several hundred KB in size.

    --
    Berg
     
    Bergamot, Dec 20, 2007
    #14
  15. mkarja

    dorayme Guest

    In article <>,
    Bergamot <> wrote:

    > dorayme wrote:
    > >
    > > It is not wise to be loading anything like 1.5MB onto a web page.
    > > One would need a screen the size of a wall to see it.

    >
    > Um,


    Let me say it again then:

    It is not wise - and there is no uming about it - to be loading
    anything like 1.5MB onto a web page.

    Let me quote myself a little from the post you reply to:

    "There are a number of things you can do to get the
    thing to be suitable for the web. One of them is not to go bigger
    than anyone can see on their screens. ... Biggest *surprise* to
    folks should be about 800 wide, 600 high. That is one thing, a
    big determinate of file size but only one.

    There is then the question of how to prepare or compress...
    It is not wise to be loading anything like 1.5MB onto a web page.
    What possible benefits could there be. One would need a screen
    the size of a wall to see it."

    (The *last sentence* was an exaggeration, of course. I was
    thinking of some pictures I and others have prepared that look so
    fine at 1000px across that are no more than 180px (but often much
    lower) and that to maintain similar quality and show at 1.5MB at
    100% would require quite a big screen)

    >there is no relationship between the dimensions of an image and
    >the number of bytes.


    This, of course, is *almost perfectly* untrue in practice. It is
    even perfectly untrue full stop.

    If indeed there is no relationship between the dimensions of an
    image and the number of bytes, then it should perhaps be
    considered quite unusual or coincidental that people the world
    over experience vastly reduced byte size of their image files
    with little normal loss of quality by simply reducing the width
    and height and resaving (especially if the master file worked on
    is lossless)

    > I can make a full screen size image that's less than
    > 2KB. Likewise, a 100x200px image can be several hundred KB in
    > size.


    Smallest I can do for my biggest screen at 1600 by 1200 is 0.4KB.
    But then it is not much of a "picture". Still an image file!

    But hey, let us not fight on examples and practical day to day
    grounds. That would be altogether too boring. Let us look at this
    from the purest point of view.

    Let us look at a graph of all the ordered pairs of images against
    file size. This means specifically constructing as a prelude to
    graphing, a simple 5 col table, 2 cols grouped to represent the
    before and after size of images. 2 more cols to say the before
    and after of byte size. And last col to give the percentage
    difference in byte reduction.

    What images shall we put in? Why, of course, every single pair
    that has ever been worked on by anyone in internet history. That
    would be a fair test, no? And it would give the lie to your
    statement that there was no relationship between the dimensions
    of an image and the number of bytes.

    --
    dorayme
     
    dorayme, Dec 20, 2007
    #15
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Q2FtbWllIFdhdHNvbg==?=

    CSS style sheet not showing correctly on the server

    =?Utf-8?B?Q2FtbWllIFdhdHNvbg==?=, Nov 28, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    917
    =?Utf-8?B?Q2FtbWllIFdhdHNvbg==?=
    Nov 29, 2005
  2. Replies:
    0
    Views:
    437
  3. Replies:
    3
    Views:
    724
    Roedy Green
    Aug 15, 2005
  4. defn noob
    Replies:
    3
    Views:
    394
    ssecorp
    Jul 3, 2008
  5. Replies:
    8
    Views:
    1,262
    Mick White
    Apr 19, 2005
Loading...

Share This Page