Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

### Fixes
- **Fix image extraction for PNG files.** When `extract_image_block_to_payload` is True, and the image is a PNG, we get a Pillow error. We need to remove the PNG transparency layer before saving the image.
- **Fix logger deprecation warning**: Replaced usage of `logger.warn` with `logger.warning` to comply with the Python logging standards.
- **Throw validation error when json is passed with invalid unstructured json

## 0.17.6
Expand Down
4 changes: 2 additions & 2 deletions unstructured/partition/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def partition_via_api(

if file_filename is not None:
metadata_filename = file_filename
logger.warn(
logger.warning(
"The file_filename kwarg will be deprecated in a future version of unstructured. "
"Please use metadata_filename instead.",
)
Expand Down Expand Up @@ -277,7 +277,7 @@ def partition_multiple_via_api(

if file_filenames is not None:
metadata_filenames = file_filenames
logger.warn(
logger.warning(
"The file_filenames kwarg will be deprecated in a future version of unstructured. "
"Please use metadata_filenames instead.",
)
Expand Down
Loading