Announcement

Collapse
No announcement yet.

Create tiles from a large image

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Create tiles from a large image

    Hi Irfanview forum,

    let me please ask a question I could not solve by reading some threads here.
    I want to cut a large image into pieces, let's say an image of 20480 x 20480 pixels into pieces of 2048x 2048.
    This can be done manually with 'Create custom crop selection' and 'Crop selection'.

    But can this be done automatically with batch or code?
    Step over the image in steps of 2048 pixels, save the tile, and go on one further step.
    After finishing first row jump to second row and do the same.

    I hope I could explain it understandingly.
    I include an image of my manual process.

    Thanks
    Rodeo
    Attached Files

    #2
    Ok,

    I found the solution with Irfanview command line processing. This is soo fluffy.
    This example is not complete for 20480, just for the half size, but it shows the operation clearly:


    i_view64.exe c:\temp\test.bmp /crop=(0,0,2048,2048,0) /convert=c:\temp\testA0.bmp
    i_view64.exe c:\temp\test.bmp /crop=(2048,0,2048,2048,0) /convert=c:\temp\testA1.bmp
    i_view64.exe c:\temp\test.bmp /crop=(4096,0,2048,2048,0) /convert=c:\temp\testA2.bmp
    i_view64.exe c:\temp\test.bmp /crop=(6144,0,2048,2048,0) /convert=c:\temp\testA3.bmp
    i_view64.exe c:\temp\test.bmp /crop=(8192,0,2048,2048,0) /convert=c:\temp\testA4.bmp
    i_view64.exe c:\temp\test.bmp /crop=(0,2048,2048,2048,0) /convert=c:\temp\testB0.bmp
    i_view64.exe c:\temp\test.bmp /crop=(2048,2048,2048,2048,0) /convert=c:\temp\testB1.bmp
    i_view64.exe c:\temp\test.bmp /crop=(4096,2048,2048,2048,0) /convert=c:\temp\testB2.bmp
    i_view64.exe c:\temp\test.bmp /crop=(6144,2048,2048,2048,0) /convert=c:\temp\testB3.bmp
    i_view64.exe c:\temp\test.bmp /crop=(8192,2048,2048,2048,0) /convert=c:\temp\testB4.bmp

    Rodeo

    Comment

    Working...
    X