Skip to content

Commit

Permalink
Add missing page width to image metadata (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
edknv authored Feb 5, 2025
1 parent 29732eb commit 5c57ab0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nv_ingest/util/pdf/metadata_aggregators.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ def construct_image_metadata_from_pdf_image(
"image_location": pdf_image.bbox,
"image_location_max_dimensions": (max(pdf_image.max_width, 0), max(pdf_image.max_height, 0)),
"height": pdf_image.height,
"width": pdf_image.width,
}

# Update the unified metadata with the extracted image information
Expand Down

0 comments on commit 5c57ab0

Please sign in to comment.