diff --git a/RELEASE_NOTES.rst b/RELEASE_NOTES.rst index 44243ea2..5f2bea6a 100644 --- a/RELEASE_NOTES.rst +++ b/RELEASE_NOTES.rst @@ -4,6 +4,13 @@ RELEASE NOTES OCRmyPDF uses `semantic versioning `_. +v4.2.5: +======= + +- Fixed an issue (#100) with PDFs that omit the optional /BitsPerComponent parameter on images +- Removed non-free file milk.pdf + + v4.2.4: ======= diff --git a/ocrmypdf/pageinfo.py b/ocrmypdf/pageinfo.py index e5a2af66..c0d55314 100644 --- a/ocrmypdf/pageinfo.py +++ b/ocrmypdf/pageinfo.py @@ -211,7 +211,7 @@ def _find_page_inline_images(page, pageinfo, contentsinfo): image['name'] = str('inline-%02d' % n) image['width'] = inline.settings['/W'] image['height'] = inline.settings['/H'] - if '/BPC' in inline.settings['/BPC'] + if '/BPC' in inline.settings: image['bpc'] = inline.settings['/BPC'] else: image['bpc'] = 8