numpyimage 3.6.2__tar.gz → 3.6.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. {numpyimage-3.6.2/numpyimage.egg-info → numpyimage-3.6.3}/PKG-INFO +1 -1
  2. {numpyimage-3.6.2 → numpyimage-3.6.3}/npimage/vidio.py +2 -2
  3. {numpyimage-3.6.2 → numpyimage-3.6.3/numpyimage.egg-info}/PKG-INFO +1 -1
  4. {numpyimage-3.6.2 → numpyimage-3.6.3}/pyproject.toml +1 -1
  5. {numpyimage-3.6.2 → numpyimage-3.6.3}/LICENSE +0 -0
  6. {numpyimage-3.6.2 → numpyimage-3.6.3}/README.md +0 -0
  7. {numpyimage-3.6.2 → numpyimage-3.6.3}/npimage/__init__.py +0 -0
  8. {numpyimage-3.6.2 → numpyimage-3.6.3}/npimage/align.py +0 -0
  9. {numpyimage-3.6.2 → numpyimage-3.6.3}/npimage/graphics.py +0 -0
  10. {numpyimage-3.6.2 → numpyimage-3.6.3}/npimage/imageio.py +0 -0
  11. {numpyimage-3.6.2 → numpyimage-3.6.3}/npimage/nrrd_utils.py +0 -0
  12. {numpyimage-3.6.2 → numpyimage-3.6.3}/npimage/operations.py +0 -0
  13. {numpyimage-3.6.2 → numpyimage-3.6.3}/npimage/utils.py +0 -0
  14. {numpyimage-3.6.2 → numpyimage-3.6.3}/numpyimage.egg-info/SOURCES.txt +0 -0
  15. {numpyimage-3.6.2 → numpyimage-3.6.3}/numpyimage.egg-info/dependency_links.txt +0 -0
  16. {numpyimage-3.6.2 → numpyimage-3.6.3}/numpyimage.egg-info/requires.txt +0 -0
  17. {numpyimage-3.6.2 → numpyimage-3.6.3}/numpyimage.egg-info/top_level.txt +0 -0
  18. {numpyimage-3.6.2 → numpyimage-3.6.3}/setup.cfg +0 -0
  19. {numpyimage-3.6.2 → numpyimage-3.6.3}/tests/test_heic.py +0 -0
  20. {numpyimage-3.6.2 → numpyimage-3.6.3}/tests/test_pbm.py +0 -0
  21. {numpyimage-3.6.2 → numpyimage-3.6.3}/tests/test_video_streamer.py +0 -0
  22. {numpyimage-3.6.2 → numpyimage-3.6.3}/tests/test_video_writers.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: numpyimage
3
- Version: 3.6.2
3
+ Version: 3.6.3
4
4
  Summary: Load, save, & manipulate image files as numpy arrays
5
5
  Author-email: Jasper Phelps <jasper.s.phelps@gmail.com>
6
6
  License: MIT License
@@ -798,7 +798,8 @@ class FFmpegVideoWriter:
798
798
  # Check if width or height needs to be padded to an even value
799
799
  if (self._pixel_format_out == 'yuv420p'
800
800
  and (width % 2 != 0 or height % 2 != 0)):
801
- pad = [[0, 0], [0, 0], [0, 0]] # [h, w, c]
801
+ pad = [[0, 0], [0, 0]] # [h, w]
802
+ pad += [[0, 0]] if pixel_format_in == 'rgb24' else []
802
803
  if height % 2 != 0:
803
804
  print('INFO: Height must be even for yuv420p pixel format but image'
804
805
  f' has height {height}, so the bottom row will be duplicated.')
@@ -846,7 +847,6 @@ class FFmpegVideoWriter:
846
847
  )
847
848
  self._stdin = self._process.stdin
848
849
 
849
-
850
850
  def write(self, frame):
851
851
  """Write a frame to the video file"""
852
852
  if self._closed:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: numpyimage
3
- Version: 3.6.2
3
+ Version: 3.6.3
4
4
  Summary: Load, save, & manipulate image files as numpy arrays
5
5
  Author-email: Jasper Phelps <jasper.s.phelps@gmail.com>
6
6
  License: MIT License
@@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta'
4
4
 
5
5
  [project]
6
6
  name = 'numpyimage'
7
- version = '3.6.2'
7
+ version = '3.6.3'
8
8
  description = 'Load, save, & manipulate image files as numpy arrays'
9
9
  readme.file = 'README.md'
10
10
  readme.content-type = 'text/markdown'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes