Skip to content

Commit

Permalink
Rearrange list to be first
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Nov 16, 2023
1 parent 55d8283 commit ce47aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/PdfImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def _write_image(im, filename, existing_pdf, image_refs):
elif im.mode == "P":
filter = "ASCIIHexDecode"
palette = im.getpalette()
palette += (768 - len(palette)) * [0]
palette += [0] * (768 - len(palette))
dict_obj["ColorSpace"] = [
PdfParser.PdfName("Indexed"),
PdfParser.PdfName("DeviceRGB"),
Expand Down

0 comments on commit ce47aca

Please sign in to comment.