summaryrefslogtreecommitdiffstats
path: root/contrib/python/Pillow/py3/PIL/PcdImagePlugin.py
diff options
context:
space:
mode:
authormaxim-yurchuk <[email protected]>2025-02-11 13:26:52 +0300
committermaxim-yurchuk <[email protected]>2025-02-11 13:57:59 +0300
commitf895bba65827952ed934b2b46f9a45e30a191fd2 (patch)
tree03260c906d9ec41cdc03e2a496b15d407459cec0 /contrib/python/Pillow/py3/PIL/PcdImagePlugin.py
parent5f7060466f7b9707818c2091e1a25c14f33c3474 (diff)
Remove deps on pandas
<https://github.com/ydb-platform/ydb/pull/14418> <https://github.com/ydb-platform/ydb/pull/14419> \-- аналогичные правки в gh Хочу залить в обход синка, чтобы посмотреть удалится ли pandas в нашей gh репе через piglet commit_hash:abca127aa37d4dbb94b07e1e18cdb8eb5b711860
Diffstat (limited to 'contrib/python/Pillow/py3/PIL/PcdImagePlugin.py')
-rw-r--r--contrib/python/Pillow/py3/PIL/PcdImagePlugin.py62
1 files changed, 0 insertions, 62 deletions
diff --git a/contrib/python/Pillow/py3/PIL/PcdImagePlugin.py b/contrib/python/Pillow/py3/PIL/PcdImagePlugin.py
deleted file mode 100644
index a0515b302eb..00000000000
--- a/contrib/python/Pillow/py3/PIL/PcdImagePlugin.py
+++ /dev/null
@@ -1,62 +0,0 @@
-#
-# The Python Imaging Library.
-# $Id$
-#
-# PCD file handling
-#
-# History:
-# 96-05-10 fl Created
-# 96-05-27 fl Added draft mode (128x192, 256x384)
-#
-# Copyright (c) Secret Labs AB 1997.
-# Copyright (c) Fredrik Lundh 1996.
-#
-# See the README file for information on usage and redistribution.
-#
-from __future__ import annotations
-
-from . import Image, ImageFile
-
-##
-# Image plugin for PhotoCD images. This plugin only reads the 768x512
-# image from the file; higher resolutions are encoded in a proprietary
-# encoding.
-
-
-class PcdImageFile(ImageFile.ImageFile):
- format = "PCD"
- format_description = "Kodak PhotoCD"
-
- def _open(self):
- # rough
- self.fp.seek(2048)
- s = self.fp.read(2048)
-
- if s[:4] != b"PCD_":
- msg = "not a PCD file"
- raise SyntaxError(msg)
-
- orientation = s[1538] & 3
- self.tile_post_rotate = None
- if orientation == 1:
- self.tile_post_rotate = 90
- elif orientation == 3:
- self.tile_post_rotate = -90
-
- self._mode = "RGB"
- self._size = 768, 512 # FIXME: not correct for rotated images!
- self.tile = [("pcd", (0, 0) + self.size, 96 * 2048, None)]
-
- def load_end(self):
- if self.tile_post_rotate:
- # Handle rotated PCDs
- self.im = self.im.rotate(self.tile_post_rotate)
- self._size = self.im.size
-
-
-#
-# registry
-
-Image.register_open(PcdImageFile.format, PcdImageFile)
-
-Image.register_extension(PcdImageFile.format, ".pcd")