New Image plugin available for beta-testing

Developed or developing a new product in PureBasic? Tell the world about it.
dige
Addict
Addict
Posts: 1391
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Post by dige »

YEAH!! :D Damn it ... it works now!!!
Very big thanks to the great El_Choni!

cya dige
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Is this new lib version still compatible with Win98 ?
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: New Image plugin available for beta-testing

Post by NoahPhense »

Hey El,

Where are you at with this Image Plugin? Just a few questions. What are
the advantages of this plugin over using the standard IncludeBinary/
CatchImage commands.

Also, where can the latest version be downloaded?

- np
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Is this new lib version still compatible with Win98 ?
It should; I only have Windows 98 SE installed here XD
Where are you at with this Image Plugin?
Finished version 2.2.
What are
the advantages of this plugin over using the standard IncludeBinary/
CatchImage commands.
This is an image plugin, so you can use it the same way you use UseImageDecoderTGA(), i.e., but for gif, jpg, wmf, cur, etc.
Also, where can the latest version be downloaded?
Latest version is in the link of my last post, but I'll upload it with a help file to PureArea soon (today). But remember it's only a decoder, not an encoder.

Regards,
El_Choni
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

..

Post by NoahPhense »

Is that all that's too it?

I just added the following line to my project:

Code: Select all

UseEC_OLEImageDecoder()
and changed my file to a gif..

Code: Select all

;- Images
DataSection
Image0:
  IncludeBinary "C:\source\purebasic\Projects\Image & Sound\JL_BADGE_1024.gif"
EndDataSection
and it works? lol.. am i missing something?

- np
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Yes. It doesn't work for you?
El_Choni
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

..

Post by NoahPhense »

El_Choni wrote:Yes. It doesn't work for you?
El, it works GREAT... I'm just in awe, that -- that is all I had to do...

You kick as$!!

Freakin great.. now I can use small files again, GIF..

Becuase we're not allowed to use JPG anymore right.. I mean by 'law'..

In our commercial applications..?

- np
dige
Addict
Addict
Posts: 1391
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Post by dige »

@ EL ... found a new bug! Your OLE Loader cant read this nice GIF image:

Image

Using WinXP_SP1 and PB3.90 (EC_OLEImageplugin v2.3 )
While trying to load the image ... the loader hangs up ...

You can download a sample source incl. the image here (28KB)

Greetz dige
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

You're right, OleLoadPicture hangs when trying to load it. You can't even say it's a Microsoft bug, because they clearly say in the SDK that this function only loads WMF, ICO and CUR files.

But I wouldn't worry too much: Photoshop also hangs when trying to load it XD, although Mozilla does not. I think your gifs are somewhat evil...

Now, seriously, is it possible that this image is corrupted or something?
El_Choni
dige
Addict
Addict
Posts: 1391
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Post by dige »

may be the image is corrupt or something else ... but its better the OLELoader does not load it instead of making a coffee break for some
hours ;-)

do you have an idea? .. if not I have to box the loader in a thread wich will
killed after a timeout ... but this is very dirty :-\
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

The function doesn't even return, so I can't do anything about it. I've posted the problem in the masm forum, just in case someone can give a workaround.

I would also use the thread trick. What else can you do? :roll:
El_Choni
newbie
Enthusiast
Enthusiast
Posts: 296
Joined: Tue Jul 29, 2003 5:47 pm
Location: FRANCE
Contact:

Post by newbie »

Absolutly great work !

Very nice plugin, I even use it to replace the JPEG PB decoder, the exe is smaller this way, very nice job ;)
- Registered PB user -

Using PB 4.00
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

..

Post by NoahPhense »

newbie wrote:Absolutly great work !

Very nice plugin, I even use it to replace the JPEG PB decoder, the exe is smaller this way, very nice job ;)
Yeah, El rulez.. check out his TailBite Application.. creates PB libraries..

download http://inicia.es/de/elchoni/TailBite/

support page viewtopic.php?t=9788&start=120

- np
pantsonhead
User
User
Posts: 39
Joined: Fri Mar 26, 2004 1:47 pm
Location: London, UK
Contact:

Very late response

Post by pantsonhead »

Just found this plug-in and wanted to say thanks and well done. :D
pantsonhead
User
User
Posts: 39
Joined: Fri Mar 26, 2004 1:47 pm
Location: London, UK
Contact:

Set Transparency Colour?

Post by pantsonhead »

Hi there

I've been using this plugin for a gif2jpg application.

Is there a way to set the transparency colour?
When a gif image is loaded the transparent area is black.
I would like to set it to white in this project - Any ideas?

Thanks.
Post Reply