Home  /  Guides  /  What one split button does to a batch

What One Split Button Does to Twelve Files

Updated 2026-11-14 · measured on 12 mixed files, 20,934,926 bytes, three output paths

The short answer

One split button is not one cut repeated twelve times. It is ninety-nine new files, and the format you save those files in decides whether your original pixels survive the trip.

Twelve files went in, eleven decoded, and each produced nine tiles: 99 tiles per output path, 297 tile files across three settings. The crop boundaries conserved all 63,016,384 source pixels, so pasting the PNG tiles back gave 0 differing pixels. The same tiles saved in each input's own format changed 24,958,150 pixels, 39.606% of the batch. Forcing every tile to JPEG changed 31,825,971, 50.504%. Lossless PNG tiles cost 51,203,020 bytes, 2.446 times the input. One truncated JPEG was skipped without a warning.

This page is about what happens to the files, not about which grid to pick. For operations that keep one file per input, the batch grayscale measurement, the batch invert measurement and the batch rotate measurement used the same twelve files. For the opposite direction, many files into one new image, the batch merge measurement is a separate operation with a separate byte bill.

1. The batch, and how the numbers were taken

Twelve files, 20,934,926 bytes on disk, 63,016,384 pixels across the eleven that decoded: six JPEGs (one truncated), four PNGs, one six-frame GIF, one lossy WebP. Each readable file was cut into a 3 x 3 grid, one output file per tile. Where a dimension did not divide by three, the extra columns or rows went to the last tile in that direction, so no pixel was dropped. Crop boxes are half-open: the right and lower coordinates are excluded, and adjacent tiles meet exactly at the boundary.

Three output settings were run on the same 99 crops. PNG saved every tile as lossless PNG. Same as input saved each tile in its own source format, JPEG at quality 90, WebP at quality 80, PNG as PNG, GIF as GIF. JPEG forced every tile to JPEG quality 90, converting modes that JPEG cannot hold. For each setting the tiles were reopened from disk and pasted back onto an empty image of the original size, then compared pixel by pixel against the decoded source.

What the twelve files were: two byte-identical 3000 x 4000 portrait JPEGs, one 4000 x 3000 landscape JPEG, one 3000 x 4000 grayscale JPEG, one 2000 x 1500 JPEG with an orientation tag, one 3000 x 3000 PNG, one 1200 x 800 transparent PNG, one 128 x 128 PNG icon, one 1600 x 900 WebP, one 400 x 300 six-frame GIF, one 800 x 600 16-bit grayscale PNG, and one 1,200-byte truncated JPEG. Crop method: Image.crop((left, top, right, bottom)) with remainder assigned to the last row and column. The run used Pillow 13.0.0, numpy 2.5.4 and Python 3.13.14 on local files.

2. Twelve files in, ninety-nine tiles out

Eleven files produced nine tiles each. The twelfth, a 1,200-byte file claiming to be a 3000 x 4000 JPEG, failed with image file is truncated (2 bytes not processed) and contributed nothing. No error was raised to the caller that counts the outputs, so a folder of a hundred images with a few corrupt ones quietly produces fewer tile sets. The loaded inputs totaled 20,933,726 bytes; the 1,200-byte difference is the broken file.

FileSizeTile sizesInput bytesPNG tilesSame-format tiles
animation.gif400 x 300133 x 100 (6), 134 x 100 (3)5,3391,0862,579
duplicate_photo.jpg3000 x 40001000 x 1333 (6), 1000 x 1334 (3)2,443,47510,849,9252,249,180
exif_orient6.jpg2000 x 1500666 x 500 (6), 668 x 500 (3)703,3352,917,614650,651
gray_16bit.png800 x 600266 x 200 (6), 268 x 200 (3)12,04218,22518,225
gray_8bit.jpg3000 x 40001000 x 1333 (6), 1000 x 1334 (3)2,068,1473,902,1221,933,395
logo_alpha.png1200 x 800400 x 266 (6), 400 x 268 (3)8,36711,22411,224
photo_landscape.jpg4000 x 30001333 x 1000 (6), 1334 x 1000 (3)2,403,70410,996,3112,239,182
photo_portrait.jpg3000 x 40001000 x 1333 (6), 1000 x 1334 (3)2,443,47510,849,9252,249,180
photo_square.png3000 x 30001000 x 1000 (9)10,636,84010,289,72110,289,721
screenshot.webp1600 x 900533 x 300 (6), 534 x 300 (3)186,7881,344,261179,284
small_icon.png128 x 12842 x 42 (4), 44 x 42 (2), 42 x 44 (2), 44 x 44 (1)22,21422,60622,606
broken.jpgclaims 3000 x 4000failed to decode1,20000

The two byte-identical portrait JPEGs produced 9 of 9 byte-identical PNG tile pairs at 10,849,925 bytes per set. That is a determinism check, not a coincidence: the crop coordinates and the encoder are the same for both.

3. Ten of eleven files got unequal tiles

Only one file, the 3000 x 3000 square, divided evenly and produced nine identical 1000 x 1000 tiles. The other ten, 90.909% of the readable batch, produced at least two different tile sizes. A 4000 x 3000 photo has a base column of 1333 pixels and one leftover column, so six tiles are 1333 x 1000 and three are 1334 x 1000. A 2000 x 1500 photo leaves two columns, giving 666 x 500 and 668 x 500. The 128 x 128 icon leaves two pixels on each axis and produces four distinct tile sizes at once.

Unequal tiles are correct behaviour, not a rounding error. Assigning the remainder to the last tile is what keeps the sum of tile areas exactly equal to the source area: 63,016,384 tile pixels against 63,016,384 source pixels. A splitter that divides by three and discards the remainder would lose one or two columns or rows on most real photographs.

Tile sizes from a 128 x 128 icon 42 x 42 4 tiles 44 x 42 2 tiles 42 x 44 2 tiles 44 x 44 1 tile

Two leftover pixels on each axis land in the last column and last row, so the bottom-right tile is the only 44 x 44 piece.

Your call: whether one- or two-pixel differences between tiles matter depends on where the pieces go. Printing them as separate panels at a fixed size will scale two of them very slightly differently. That is a decision about your output, not a number this run can make for you.

4. The output format decides whether your pixels survive

Cutting is exact; saving is not. The 99 PNG tiles, reopened from disk and pasted back into position, reproduced all eleven source images with 0 differing pixels. The same crops saved in each input's own format produced 24,958,150 differing pixels, 39.606% of the 63,016,384-pixel batch, because JPEG and WebP re-encode their tiles. Forcing every tile to JPEG quality 90 produced 31,825,971 differing pixels, 50.504% of the batch.

Per file the loss is uneven. The two portrait photographs changed 50.043% of their pixels under both lossy settings, the 128 x 128 icon changed 76.813% under forced JPEG, and the files that stayed as PNG changed none. A claim that splitting keeps every source pixel is true about the geometry and false about the saved bytes as soon as a lossy format is chosen.

Output settingTile filesTotal bytesTimes the inputDiffering pixels on reassemblyShare of batch
PNG (lossless)9951,203,0202.44600%
Same as input9919,845,2270.94824,958,15039.606%
Forced JPEG q909911,787,4380.56331,825,97150.504%
Pixels changed after reassembly PNG 0% Same format 39.606% Forced JPEG 50.504% Longest bar is 50.504%; others scaled to it.

Geometry loses nothing. Re-encoding is what changes pixels, and the amount depends on the format.

5. Lossless PNG tiles cost 2.446 times the input

The 99 PNG tiles totaled 51,203,020 bytes against 20,934,926 bytes of input, a 144.582% increase. Photographs are the reason: a 2,403,704-byte landscape JPEG became 10,996,311 bytes of PNG tiles, 4.575 times its input. The two portrait photographs accounted for 4,886,950 input bytes, 23.344% of the batch, but 21,699,850 PNG tile bytes, 42.38% of the output. Every JPEG re-encoded as lossless PNG pays that cost nine times over.

Two files went the other way. The 3000 x 3000 PNG, already lossless, shrank 3.263% to 10,289,721 bytes because nine separate PNG streams compressed slightly better than one large one. The six-frame GIF fell 79.659% to 1,086 bytes because only its first frame was cut. The other two settings were cheaper than the input: same-as-input landed at 19,845,227 bytes, down 5.205%, and forced JPEG at 11,787,438 bytes, down 43.695%.

Total bytes by output setting Input 20,934,926 PNG 51,203,020 Same format 19,845,227 Forced JPEG 11,787,438

Bars scaled to the largest total, 51,203,020 bytes. The lossless path is the only one that grows the batch.

6. Overlap duplicates pixels instead of adding information

A 20-pixel overlap on both axes of a 4000 x 3000 photo still produces nine tiles, but their combined area is 12,281,600 pixels against 12,000,000 source pixels: 281,600 duplicated pixels, 2.347% of the source. Each interior column and row shares a strip with its neighbour, and every shared pixel is written to disk twice. Those nine PNG tiles totaled 11,324,132 bytes.

Overlap is a stitching aid, not extra resolution. It changes the tile boundaries without changing the source, so any downstream step that counts pixels across tiles will overcount by exactly the duplicated area.

7. Fixed-size blocks leave partial edge tiles

Splitting by a fixed block size is a different arithmetic. On the 4000 x 3000 photo, 1000 x 1000 blocks divide evenly and produce 12 tiles with no partial piece, totaling 10,904,214 PNG bytes. On a 2000 x 1500 photo, 700 x 700 blocks produce nine tiles, five of them partial: four 700 x 700, two 600 x 700, two 700 x 100 and one 600 x 100. Those nine tiles still sum to 3,000,000 pixels, exactly the source, and totaled 2,914,839 bytes.

ModeSourceBlockTilesPartial tilesPNG bytes
Equal-quantity grid4000 x 30003 x 39010,996,311 (PNG path)
Fixed blocks, divisible4000 x 30001000 x 100012010,904,214
Fixed blocks, remainder2000 x 1500700 x 700952,914,839
Grid with overlap4000 x 30003 x 3, 20 px99 shared strips11,324,132

The equal-quantity grid figure is that file's share of the PNG output path, not a separate run; the other three rows are separate single-file runs.

8. Alpha, 16-bit depth, animation and orientation

The 1200 x 800 transparent logo had 607,580 fully transparent pixels out of 960,000, 63.29% of the image, with no partial alpha and only two alpha levels. All 607,580 transparent pixels were still transparent across the nine PNG tiles, and every tile stayed in RGBA mode. Forced-JPEG tiles came back in RGB mode with no alpha channel at all, which is why 65.943% of that file's pixels differed on reassembly: the hidden colour under the transparent area is exposed once alpha is discarded.

The 800 x 600 16-bit grayscale PNG held 65,536 distinct values from 0 to 65,535. PNG tiles stayed in I;16 mode and still held all 65,536 levels across the nine tiles. Forced-JPEG tiles came back in L mode with 225 distinct values present; the format offers 256 levels instead of 65,536, a 99.609% reduction in available depth. The six-frame 400 x 300 GIF produced one still frame per tile, losing five frames. The 2000 x 1500 JPEG carried EXIF Orientation=6, but its first PNG tile had 0 EXIF tags, so the tag that told a viewer to rotate the picture was gone.

Your call: a tile set going into a print layout needs the alpha and bit depth that PNG preserves; a tile set feeding a size-limited upload form may not. Which of those four behaviours is present in your own folder is for you to check. This run used files built to contain the awkward cases.

9. Timing, and whether it repeats

The eleven-file run took 8,811.32 ms for the crop and save work across all three output paths. Cropping the 99 tiles took 107.38 ms, 1.219% of the total; writing 297 tile files took 8,703.94 ms, 98.781%. Saving cost 81.057 times as much as cutting. The expensive part of a batch split is encoding many small files, not computing their coordinates.

A full rerun of the PNG path produced byte-identical output: SHA-256 787f8b2bba5df581 for both runs. The two byte-identical portrait photographs also produced 9 of 9 byte-identical tile pairs. Nothing in the crop arithmetic is random.

What was not measured

The batch was split on a local machine with Pillow. A browser-based splitter will produce different timings and probably different byte counts, depending on its encoder and quality defaults. Broken-file behaviour is specific to Image.open; a browser decoder may fail differently on truncation. Only a 3 x 3 equal-quantity grid, one 20-pixel overlap and two fixed block sizes were tested; other row and column counts, other overlaps, and quality values other than JPEG 90 and WebP 80 were not. Reassembly compared decoded pixels against the decoded source, not against the original compressed bytes. Colour profiles, metadata other than the orientation tag, and archive packaging were not measured. The GIF was cut from its first frame only; splitting every frame of an animation was not tested.

Your call: if you are splitting a folder you did not build yourself, count the input files and count the tile sets that came out. A missing set leaves no gap in the numbering that a preview grid would show.

Questions and answers

Does splitting a photo reduce its quality?

The grid itself does not, but the format you save the tiles in does. In our batch, twelve files became 99 tiles and the crop boundaries conserved all 63,016,384 source pixels: pasting the PNG tiles back produced 0 differing pixels on all eleven readable files. Saving those same tiles in each input's own format changed 24,958,150 pixels, 39.606% of the batch, because JPEG and WebP re-encode. Forcing every tile to JPEG quality 90 changed 31,825,971 pixels, 50.504%. Lossless PNG tiles cost 51,203,020 bytes, 2.446 times the 20,934,926-byte input.

Can one split button process a whole folder of mixed-format images at once?

Yes, but the files do not all arrive. Our run submitted twelve files, 20,934,926 bytes; eleven decoded and each produced nine tiles, so 99 tiles came out. The twelfth was a 1,200-byte truncated JPEG that failed with the error image file is truncated (2 bytes not processed) and was skipped with no warning. Count the inputs and count the tile sets.

Why are my nine tiles not all the same size?

Because most image dimensions are not divisible by three. In our eleven readable files, ten produced tiles of at least two different sizes; only the 3000 x 3000 square gave nine identical 1000 x 1000 tiles. A 4000 x 3000 photo yields six 1333 x 1000 tiles and three 1334 x 1000 tiles; the extra column goes to the last piece. A 128 x 128 icon yields four distinct sizes: 42 x 42, 44 x 42, 42 x 44 and 44 x 44. Crop boundaries are half-open, so no pixel is lost: tile areas summed to 63,016,384, exactly the source total.

Does splitting a transparent PNG keep the alpha channel in every tile?

Only if the tiles stay in a format that has an alpha channel. Our 1200 x 800 logo had 607,580 fully transparent pixels out of 960,000, 63.29% of the image, with no partial alpha. All 607,580 transparent pixels were still transparent across the nine PNG tiles, and every tile stayed in RGBA mode. The forced-JPEG tiles were RGB, with no alpha channel at all.

Does a 16-bit PNG keep its depth when split into JPEG tiles?

PNG tiles keep it, JPEG tiles do not. Our 800 x 600 16-bit grayscale file held 65,536 distinct values from 0 to 65,535. Saved as PNG, the nine tiles stayed in I;16 mode and still held all 65,536 levels. Saved as JPEG, the tiles came back in L mode with 225 distinct values present, and the format offers only 256 levels instead of 65,536, a 99.609% reduction in available depth.

What happens to an animated GIF when it is split into tiles?

Only the first frame is cut. Our 400 x 300 GIF had six frames. Each PNG tile came back as a single still frame, so five frames were lost per tile. The nine PNG tiles totaled 1,086 bytes against the 5,339-byte input, a 79.659% drop, because five frames of animation were discarded.

Why did my split tiles come out sideways from a phone photo?

The orientation tag does not survive the save. Our 2000 x 1500 JPEG carried EXIF Orientation=6. The first PNG tile had 0 EXIF tags and no orientation value, so a viewer that used the tag to rotate the original has nothing left to rotate the tile with. Crop coordinates are computed on the stored pixel array, not on the rotated display.

How much do overlapping tiles duplicate?

A 20-pixel overlap on a 4000 x 3000 photo split into nine tiles produced 12,281,600 tile pixels from 12,000,000 source pixels: 281,600 duplicated pixels, 2.347% of the source. The nine PNG tiles totaled 11,324,132 bytes. Overlap is not free pixels; each shared strip is stored twice.

How long does a batch split take, and does it repeat exactly?

Our eleven-file run took 8,811.32 ms for crop and save work across three output paths, of which 107.38 ms, 1.219%, was cropping and 8,703.94 ms, 98.781%, was writing 297 tile files. Saving cost 81.057 times as much as cutting. A full rerun of the PNG path produced byte-identical output: SHA-256 787f8b2bba5df581 twice. The two byte-identical 3000 x 4000 photos also produced 9 of 9 byte-identical tile pairs at 10,849,925 bytes each.

Related measurements on the same twelve files: what one merge button does to a batch (many inputs become one padded canvas), what one grayscale button does to a batch (bytes dropped 40.514%), and what one invert button does to a batch (a reversible operation that still changes bytes). For a single-file crop, the photo cropper measurement covers what is thrown away; for grid work on many files at once, the batch resize measurement covers a different operation with its own geometry.

See all free image tools and measured guides