Skip to content

Added image ratio paste fix#14

Open
ksundeen wants to merge 1 commit intorammie:masterfrom
ksundeen:fixImagePasteRatio
Open

Added image ratio paste fix#14
ksundeen wants to merge 1 commit intorammie:masterfrom
ksundeen:fixImagePasteRatio

Conversation

@ksundeen
Copy link

Code account for pasting different sized images to maintain original image ratio dimensions.

Code account for pasting different sized images to maintain original image ratio dimensions.
w, h = rect[2] - x, rect[3] - y
pdf = self.Attachment(data, dimensions=(x, y, w, h)).pdf()
# Changed to accomodate StringIO
img = Image.open(imageData)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should move this functionality to the Attachment class instead and pass parameters to it from here.

@edgaraafelix
Copy link

Is there any chance this image ratio is getting implemented?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants