Fix order of operations in matrix multiplication
Issue #73. The order of operations happens to not matter for scaling but does matter for translation. We only need scaling to find the DPI, so the error was not noticed. Mainly useful to other uses of this library.
This commit is contained in:
@@ -93,7 +93,7 @@ def _interpret_contents(contentstream):
|
||||
ctm = stack.pop()
|
||||
elif command == b'cm':
|
||||
ctm = matrix_mult(
|
||||
ctm, _matrix_from_shorthand(operands))
|
||||
_matrix_from_shorthand(operands), ctm)
|
||||
elif command == b'Do':
|
||||
image_name = operands[0]
|
||||
image_raster_settings.append(
|
||||
|
||||
Reference in New Issue
Block a user