QB64 Phoenix Edition
program that stitches together a bunch of image files into one giant poster? - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3)
+---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10)
+---- Thread: program that stitches together a bunch of image files into one giant poster? (/showthread.php?tid=3153)

Pages: 1 2


RE: program that stitches together a bunch of image files into one giant poster? - madscijr - 10-24-2024

(10-24-2024, 07:39 AM)grymmjack Wrote: imagemagick convert.
https://imagemagick.org/script/convert.php
...
(or +append) if you want horizontal

Interesting, thanks! I already use imagemagick to convert images from the weird new formats like webp not supported by certain apps, to formats they do understand, but haven't gotten too deep into the other features. This makes me curious to find out more about what else it can do. Thanks again!


RE: program that stitches together a bunch of image files into one giant poster? - mdijkens - 10-24-2024

I think there is a limit of ~8GB for a 32bit image?


RE: program that stitches together a bunch of image files into one giant poster? - madscijr - 10-24-2024

(10-24-2024, 02:30 PM)mdijkens Wrote: I think there is a limit of ~8GB for a 32bit image?
Is that a limit in QB64PE, that Microsoft Image Composite Editor app, ImageMagick, the PNG or JPEG file format, or under Windows 11? Sorry, we've mentioned all of these on the thread...


RE: program that stitches together a bunch of image files into one giant poster? - SMcNeill - 10-24-2024

Your limit is going to be 4GB in size.   The reason is rather simple... 32,767 pixels x 32,767 pixels is the largest an image can be, and 32-bit images are 4 bytes per pixel.   32k * 32k * 4 = 4 GB.

Or...  An _UNSIGNED LONG in size.


RE: program that stitches together a bunch of image files into one giant poster? - SMcNeill - 10-24-2024

Sorry...   It's a SCREEN that has a max of 32,767 pixels.

Most image formats are unsigned integers in width and height:

Quote:The physical image size limit for .jpeg compression is 65,535 pixels, this applies to any file format that uses >jpeg compression.

If you need to capture an image that is too large to work with .jpeg you can instead use .tiff with deflate or G4 compression.

PDF does not have an explicit file size limit again the same rule applies since PDF uses .jpeg compression for images it will also have the physical image size unless compression is turned off.

Architecturally there is only one limit in the PDF standard: the overall file size must be below ~10GB as the cross-reference tables which define the PDF structure use 10 bits.

A workaround could be to scan at a lower resolution to say 200dpi with a file format as TIFF. Use a different compression (or no compression),

So technically, I imagine you *could* make 65k x 65k images. I just don't think QB64 would make them, as I *think* our limits are based on signed longs instead (which is what a max program screen size can be in windows and such).


RE: program that stitches together a bunch of image files into one giant poster? - madscijr - 10-24-2024

(10-24-2024, 05:56 PM)SMcNeill Wrote: Sorry...   It's a SCREEN that has a max of 32,767 pixels.

Most image formats are unsigned integers in width and height:
...
So technically, I imagine you *could* make 65k x 65k images.  I just don't think QB64 would make them, as I *think* our limits are based on signed longs instead (which is what a max program screen size can be in windows and such).

Good to know - thanks. Don't think I'll need bigger than 32767x32767 at this time (that res would probably be overkill for printing a big poster), but - MAYBE SOMEDAY! LoL