Hi,
Is there a way in Harbour to get the width and height of an Image in Pixels (Image can be in any format)? I tried with freeimage as posted in \Hb34\contrib\hbfimage\tests but I get the error “The application was unable to start correctly (0xc000007b)”.
Warm regards,
Jayadev
Hi Jimmy,
Thanks for your immediate reply. I had already tried the excellent BosTaurus library. However the following functions are not defined in console mode and hence I am unable to use the lib.
Errors:
hbmk2: Error: Referenced, missing, but unrecognized Harbour function(s):
GETFORMHANDLE(), RELEASEALLWINDOWS(), GETWINDOWLONG(),
GETCONTROLINDEX(), GETCONTROLTYPE(), GETCONTROLHANDLE()
Warm regards,
Jayadev
--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups
"Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/6459d301-e057-4075-915b-6977c3eabd8en%40googlegroups.com.
The best way is Freeimage, but I too wasn't able to make it work with recent distributions, but it worked in an old one. The other way could be Imgmagick via a shell command, creating a txt file with the output of the command identify.
I do it in Linux and it works.
The last possibility would be to fopen the image and try to read directly the infos in it, but it proved to be quite complicated.
For PDFs IIRC I used Ghostscript, via shell command as per
Imagemagick.
HTH
Dan
--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/000401d7cd58%24454e1440%24cfea3cc0%24%40com.
Hi Bernard,
Excellent my friend. Works like a charm. Thanks for coming to my rescue.
Warm regards,
Jayadev
From: harbou...@googlegroups.com [mailto:harbou...@googlegroups.com] On Behalf Of Bernard Mouille
Sent: 30 October 2021 05:25 PM
To: Harbour Users
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/67f878b4-caca-4c93-91a1-be5e13a4a374n%40googlegroups.com.
Hi Dan,
Thanks for chipping in.
Bernard’s solution is very good. You can use that.
Warm regards,
Jayadev
From:
harbou...@googlegroups.com [mailto:harbou...@googlegroups.com] On
Behalf Of Appliserver
Sent: 30 October 2021 04:23 PM
To: harbou...@googlegroups.com
Subject: Re: [harbour-users] Get Image width and Height of files of the
formats PNG,JPG,TIF
The best way is Freeimage, but I too wasn't able to make it work with recent distributions, but it worked in an old one. The other way could be Imgmagick via a shell command, creating a txt file with the output of the command identify.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/ab075a5e-2a83-6ee0-efd3-6f2c66fe9a30%40appliserver.com.