Results 1 to 2 of 2

Thread: Create tiles from a large image

  1. #1
    IV Newbie
    Join Date
    Apr 2017
    Posts
    2

    Default 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 Thumbnails Attached Thumbnails Click image for larger version. 

Name:	irfanview_tiles.PNG 
Views:	16 
Size:	468.5 KB 
ID:	4751  

  2. #2
    IV Newbie
    Join Date
    Apr 2017
    Posts
    2

    Default

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •