New Image plugin available for beta-testing

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

El_Choni, thanks for a fabulous tool. I just downloaded the 2.3 version and compiled it for PB v4.0 b9, and it works great. only adds a couple k to the exe size too! Absolutely excellent imagedecoder, man. Thanks again.
BERESHEIT
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Fang: which plugins do you need?
El_Choni
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Post by Thorsten1867 »

Where can I get the plugin for PB 4.00?
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

The last download link works for PB4, using it now.
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post by NoahPhense »

Thorsten1867 wrote:Where can I get the plugin for PB 4.00?
Yeah, where can I get the 4.0 plugin?

- np
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Post by Thorsten1867 »

I have some problems with the plugin. So I use wxCmmImgPlugin. PNG doesn't work, but JPG and other formats.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
dige
Addict
Addict
Posts: 1391
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Post by dige »

What is the latest release from the OLEImagePlugin?
I use the lib from 29/03/2006 ... and have some problems
with catchimage and jpeg images.
User avatar
Dreamland Fantasy
Enthusiast
Enthusiast
Posts: 335
Joined: Fri Jun 11, 2004 9:35 pm
Location: Glasgow, UK
Contact:

Post by Dreamland Fantasy »

I can't get the PPM decoder to work. It just fails when I try to load a PPM image.

The other decoders work okay.

Kind regards,

Francis.
User avatar
Dreamland Fantasy
Enthusiast
Enthusiast
Posts: 335
Joined: Fri Jun 11, 2004 9:35 pm
Location: Glasgow, UK
Contact:

Post by Dreamland Fantasy »

I haven't solved the problem, but I seem to have found a workaround.

It would appear that the order that you call the various encoders and decoders matters. For instance, the following seems to work okay:

Code: Select all

UseEC_PPMImageDecoder()
UseTGAImageDecoder()

FileName$ = OpenFileRequester("Pick a PPM file", "", "Portable Pixmap File (*.ppm)|*.ppm", 0)

If LoadImage(0, FileName$)
  MessageRequester("", "Image loaded successfully")
Else
  MessageRequester("", "Failed to load image")
EndIf
Now if I swap the first two lines around it fails:

Code: Select all

UseTGAImageDecoder()
UseEC_PPMImageDecoder()

FileName$ = OpenFileRequester("Pick a PPM file", "", "Portable Pixmap File (*.ppm)|*.ppm", 0)

If LoadImage(0, FileName$)
  MessageRequester("", "Image loaded successfully")
Else
  MessageRequester("", "Failed to load image")
EndIf
Strange! :?

Does anyone else have this problem?

Kind regards,

Francis.
User avatar
Dreamland Fantasy
Enthusiast
Enthusiast
Posts: 335
Joined: Fri Jun 11, 2004 9:35 pm
Location: Glasgow, UK
Contact:

Post by Dreamland Fantasy »

After a lot of playing around this arrangement seems to work:

Code: Select all

UsePNGImageDecoder()
UseEC_PPMImageDecoder()
UseTGAImageDecoder()
UseTIFFImageDecoder()
UseEC_OLEImageDecoder()
UseEC_IFFImageDecoder()
Any other arrangement that I've tried ends up with either the 'failure loading image' message with my example code or an 'invalid memory access' debugger error during the LoadImage().

*** Edit: I've discovered that with this arrangement I seem to have an intermittent problem when I load TIFFs. Sometimes it works, sometimes it doesn't.

Kind regards,

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

Post by dige »

Works fine here. May be you have'nt the latetest releases from el_choni?
I've put it here for download:

http://www.kram-hochladen.de/download.php?id=NTM5Nzg=
User avatar
Dreamland Fantasy
Enthusiast
Enthusiast
Posts: 335
Joined: Fri Jun 11, 2004 9:35 pm
Location: Glasgow, UK
Contact:

Post by Dreamland Fantasy »

Hi dige,

Those libraries that you posted are different to the ones I have, so maybe I wasn't using the latest versions.

Unfortunately it doesn't cure my problem. I still get the 'failed to load image' message using the following example code, where swapping the first two lines seems to correct it.

Code: Select all

UseTGAImageDecoder() 
UseEC_PPMImageDecoder() 

FileName$ = OpenFileRequester("Pick a PPM file", "", "Portable Pixmap File (*.ppm)|*.ppm", 0) 

If LoadImage(0, FileName$) 
  MessageRequester("", "Image loaded successfully") 
Else 
  MessageRequester("", "Failed to load image") 
EndIf
I thought that it may have been something to do with me running the x64 version of Windows XP, but I have now tried it on another PC with the 32-bit version of Windows XP and I get the same problem.

Kind regards,

Francis.
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

dige - can you re-post somewhere? I get an error message at that link (and I can't tell you what it says as I don't speak or read German!).

If anyone else has a link to the latest version of this lib please send it to me!

Thanks!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
dige
Addict
Addict
Posts: 1391
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Post by dige »

Xombie
Addict
Addict
Posts: 898
Joined: Thu Jul 01, 2004 2:51 am
Location: Tacoma, WA
Contact:

Post by Xombie »

Hate to resurrect an old thread but does anyone have the latest file?
Post Reply