MCPcopy Create free account
hub / github.com/SLDGroup/EMCAD / tif2png

Function tif2png

utils/format_conversion.py:8–18  ·  view source on GitHub ↗

Usage: formatting `tif/tiff` files to `jpg/png` files :param _src_path: :param _dst_path: :return:

(_src_path, _dst_path)

Source from the content-addressed store, hash-verified

6
7
8def tif2png(_src_path, _dst_path):
9 """
10 Usage:
11 formatting `tif/tiff` files to `jpg/png` files
12 :param _src_path:
13 :param _dst_path:
14 :return:
15 """
16 tif = TIFF.open(_src_path, mode='r')
17 image = tif.read_image()
18 misc.imsave(_dst_path, image)
19
20
21def data_split(src_list):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected