GIF and TIFF Support

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by LJ.


Two new commands:

UseGIFImageDecoder()
UseTIFFImageDecoder()
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> UseGIFImageDecoder()
> UseTIFFImageDecoder()

I know GIFs are licensed, but I don't know about TIFFs... but that's why you can't
use GIFs in PureBasic (too expensive). The NViewLib.DLL will let you load GIFs
into PureBasic (see the Beginner's FAQ on these forums).
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

UseTIFFImageDecoder() already exists...

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by El_Choni.

I think I can code a GIF decode plugin now. Since it'll use OleLoadPicture, I don't think there'll be license problems involved (It's Windows who does the job).

El_Choni
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Amiga5k.

My knee-jerk reaction is to say, "Forget about gif. It's been superceded by many more flexible and powerful (and license free) formats such as .png". And it's true, except when you're dealing with the web, gif is still much alive and kicking..at least for now.

Gif has been around a while, so there are a pretty good number of tools out there for making animated gifs, etc. Personally, I'd use png if you need lossless gfx, or jpg is you're looking for really small file sizes.

Russell

p.s. I hear a lot of people refering to gifs as "jifs" ('j' as in 'Jane'), rather than gif ('g' as in graphic - which is what the 'g' in gif actually stands for :)). Just wanted to annoy someone. :)

***Commodore 64 - Over one million cycles per second, 16 vibrant colors, 3 incredible audio channels and 38,911 Basic Bytes Free! Who could ask for anything more?***
LJ
Enthusiast
Enthusiast
Posts: 177
Joined: Wed Apr 30, 2003 4:00 pm

Post by LJ »

NewLib.DLL library doesn't work properly when displaying .GIF's over a Box in an image handle. It only works over the plain gray background of a window which is not good for my current project.

As to the other posts about .GIF's. It all depends on the picture you have. Purchase a program called FireWorks by Macromedia or a similar program. What you have are different compressions good for different types of pictures. GIF's compress the pictures I want to display to about 10K, JPG equivalent is 100K, and BMP equivalent is 650K. Now this isn't true for all pictures. I don't have the time to give you the low down on what types of pictures the different compressions and ultimately different color palettes work best for, but a good book is entitled Optimizing Graphics for the Web which deals with this.

It is incorrect to say GIF has been superceded by more powerful formats. It is correct to say that the compression you choose depends on the picture itself and I highly recommend you purchase Fireworks to dive deeper into this subject giving you a greater understanding of compression technology.
User avatar
Danilo
Addict
Addict
Posts: 3037
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Post by Danilo »

Amiga5k wrote:p.s. I hear a lot of people refering to gifs as "jifs" ('j' as in 'Jane'), rather than gif ('g' as in graphic - which is what the 'g' in gif actually stands for <img src="images/smiles/icon_smile.gif" />). Just wanted to annoy someone.
JIF is an JPEG format, JFIF Compliant (.jif; .jiff; .jfif) which has
nothing to with GIF - but its a real used format.
cya,
...Danilo
...:-=< http://codedan.net/work >=-:...
-= FaceBook.com/DaniloKrahn =-
Post Reply