Loading large images, zooming and saving example revised

Share your advanced PureBasic knowledge/code with the community.
User avatar
DK_PETER
Addict
Addict
Posts: 904
Joined: Sat Feb 19, 2011 10:06 am
Location: Denmark
Contact:

Re: Loading large images, zooming and saving example revised

Post by DK_PETER »

@Lord.

I can't perform any test for three weeks. My friend is leaving for Norway (He's a craftsman).
But he told me, that he tried a TIFF image of 30000x30000 and it loaded.
I don't know the limits of Tiff files but he sounded sure of himself.

Edit:(Tiff can't be right..It has a limit of 4 bg. There's bigTiff, but that's under development afaik.)
Apparently he has no idea of what he loaded... :shock:

I hope someone can confirm this, otherwise I have to wait three weeks to find out for myself. :(
There must be others with better configurations on the forum than you and I, who can do some
testing to clarify real limitations. (Both for canvas and loadimage().)

If not...Guess I have to wait then..

Best regards
Peter
Current configurations:
Ubuntu 20.04/64 bit - Window 10 64 bit
Intel 6800K, GeForce Gtx 1060, 32 gb ram.
Amd Ryzen 9 5950X, GeForce 3070, 128 gb ram.
User avatar
Lord
Addict
Addict
Posts: 900
Joined: Tue May 26, 2009 2:11 pm

Re: Loading large images, zooming and saving example revised

Post by Lord »

wilbert wrote:...
For a private application I completely agree.
But if I would buy an application, start that as the first application I'm running and it consumes everything available so I can't start another application, I would complain to the creator about it unless I'm warned in advance that it operates this way.
I totally agree with you, but this is not the issue here.
And I don't think that you would buy an application from me. :wink:
Image
User avatar
Lord
Addict
Addict
Posts: 900
Joined: Tue May 26, 2009 2:11 pm

Re: Loading large images, zooming and saving example revised

Post by Lord »

DK_PETER wrote:...
If not...Guess I have to wait then..
...
Me too. :(
Image
User avatar
Lord
Addict
Addict
Posts: 900
Joined: Tue May 26, 2009 2:11 pm

Re: Loading large images, zooming and saving example revised

Post by Lord »

Hello Peter!

Any news?
Image
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Loading large images, zooming and saving example revised

Post by IdeasVacuum »

"Big Maps, Very big maps"
Made my day 8) (I know, easy to please)
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
DK_PETER
Addict
Addict
Posts: 904
Joined: Sat Feb 19, 2011 10:06 am
Location: Denmark
Contact:

Re: Loading large images, zooming and saving example revised

Post by DK_PETER »

@Lord.

Sorry...No news. He's hasn't come home yet and I can't reach him.

I've been fiddling with it on and off.
Last test was done 4 days ago with a new GeForce GTX 770 /4 GB/16 GB.
I've tried creating images 'using photoshop' up to 30000*30000 and the
results with loadimage is a total fail, when trying to load such big images.

Only solution is to split the image into smaller parts and display them as needed..

I'm still waiting for him to get home, though. I would very much like to try
the code myself on his computer. (However - I believe, that the results will be completely the same).

Best regards
Peter
Current configurations:
Ubuntu 20.04/64 bit - Window 10 64 bit
Intel 6800K, GeForce Gtx 1060, 32 gb ram.
Amd Ryzen 9 5950X, GeForce 3070, 128 gb ram.
User avatar
Lord
Addict
Addict
Posts: 900
Joined: Tue May 26, 2009 2:11 pm

Re: Loading large images, zooming and saving example revised

Post by Lord »

IdeasVacuum wrote:
"Big Maps, Very big maps"
Made my day 8) (I know, easy to please)
I'm proud to please you. :wink:
Image
User avatar
Lord
Addict
Addict
Posts: 900
Joined: Tue May 26, 2009 2:11 pm

Re: Loading large images, zooming and saving example revised

Post by Lord »

@Peter
I Think there is no way to go beyond 2GB for any image
displaying on a Canvas utilizing PureBasic. Somewhere
between approx. 1.5 and 2.0 GB you can't trust a returned
handle. So you can't test at runtime which image size can
be handled.
Also ScrollAreaGadget returns a valid handle if the Gadget
did not met the given dimensions.
Look here: http://www.purebasic.fr/english/viewtop ... =4&t=56736
Image
Post Reply