Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    New Coder
    Join Date
    Mar 2003
    Posts
    64
    Thanks
    0
    Thanked 0 Times in 0 Posts

    png vs. jpg formats

    png files are larger right? i see some sites that use png format, is it supposed to be of better quality or something?

  • #2
    Regular Coder
    Join Date
    Feb 2003
    Location
    Helsinki, Finland
    Posts
    111
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I can't say I know alot about this subject, but I believe they are used with polls and so on. If I've understood them right, you are able to edit them via some PHP or ASP program...
    Do correct me if this is not even close to the truth

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    North East England
    Posts
    853
    Thanks
    0
    Thanked 0 Times in 0 Posts
    png is a good format, it's used in polls and dynamic apps because it can be created on the fly using php. Gifs can't as they require compuserve licenses.

    Different formats are good for different things; a png will be better than a gif generally, a jpg will always be best for photographic images. Png's are good where gradients are used I find, they support alpha gradients and stuff too but Internet Explorer fails to render these properly without extra code.
    [+] Computer/PC issues [+] Silverpaw3D
    ------------------------------------------------
    Never buy a dwarf with learning disabilities...

    ...it's not big, and it's not clever.

  • #4
    New Coder
    Join Date
    Feb 2003
    Posts
    97
    Thanks
    0
    Thanked 0 Times in 0 Posts
    png and gif compression is lossless. but wif gif you only have the 8-bit 256 colors. jpg is by far not lossless. you can get lots of jpg artifacts and jagges. gif and jpg are best for normal webpage images but if you have something like a main-screen, large, complex, multicolored image that you want to look good use png.

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    308
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This is a great article that delineates between gif, jpeg and png.

    http://www.devshed.com/Client_Side/M...iew/page1.html

    Hope it helps?

  • #6
    New Coder
    Join Date
    May 2003
    Location
    Texas
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Another great thing about .png files is they import into flash better than .gif files, and maintain all transparency. Gif files have rough edges, and Jpegs don't do transparency at all.
    L8R
    Difinity


    He who laughs last, didn't get the joke!

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    paris, france
    Posts
    1,216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    IE doesnt support PNG transparency unless you use a special behavior which requiers some lines of javascript, which is rubbish for loading times and usability. the compuserve copyright is such a laugh. on the windows gimp page, there is a download for the gif saver extension, and they tell you to only download it if you have compuserves permission or if their copyright doesnt ean anything in your country.
    photoshop too expensive? use the GIMP! www.gimp.org

  • #8
    New Coder
    Join Date
    May 2003
    Location
    Texas
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I simply import the file and use. Maybe you're not using MX, because CTRL + R imports a PNG w/ perfect transparencies... Even grads!
    L8R
    Difinity


    He who laughs last, didn't get the joke!

  • #9
    New Coder
    Join Date
    Feb 2003
    Posts
    97
    Thanks
    0
    Thanked 0 Times in 0 Posts
    if its something that needs transparency then use a gif. if you need a large image with multi colors then use gif pieces and position them for the transparency to avoid that stupid thing about PNG transparency in IE.

  • #10
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by BloodXero
    if its something that needs transparency then use a gif. if you need a large image with multi colors then use gif pieces and position them for the transparency to avoid that stupid thing about PNG transparency in IE.
    Transparency is possible with PNG under IE. It's translucency and gamma which aren't properly supported.

    But let's not rehash it, look at this thread instead: whats up with png?
    Check out the Forum Search. It's the short path to getting great results from this forum.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •