You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
some small tweak to the example on pypi page,
tif saved successful, but the layer were flattern.
Is is possible to keep the layers on ouput tif image ?
fromtifffileimportimread, imwriteimportpsdtagsisd=psdtags.TiffImageResources.fromtiff('input_2layer.tif')
res=psdtags.TiffImageResources.fromtiff('input_2layer.tif')
image=imread('input_2layer.tif')
imwrite(
'output_layered_tiff.tif',
image,
byteorder=isd.psdformat.byteorder, # must match ImageSourceDataphotometric='rgb', # must match ImageSourceDatametadata=None, # do not write any tifffile specific metadataextratags=[isd.tifftag(), res.tifftag()],
)
The text was updated successfully, but these errors were encountered:
Can you share the file? For the example I am using the layers stay layered, which is the purpose of the package. It is validated by assert isd == TiffImageSourceData.fromtiff('_layered.tif') in the docstring.
some small tweak to the example on pypi page,
tif saved successful, but the layer were flattern.
Is is possible to keep the layers on ouput tif image ?
The text was updated successfully, but these errors were encountered: