Skip to content

Not significant difference in output image while using crop options #80

@gayu19

Description

@gayu19

Describe the bug
When we use crop parameters in options for example 'crop-h': '3', then if the value is positive then we are getting a blank white box and if we are using negative value then it displays the complete image no matter what the negative value is. So while using different values we should see the difference in image, but here the issue is there is no standard output of these crop options. I have following queries for this.

  • What values can be provided to the “crop-h“, “crop-w“, “crop-x“, “crop-y“
  • What is the min and max for it
  • What is the measuring parameter of "3" for image in 'crop-h': '3'
  • What will be the default value if we won't provide “crop-h“, “crop-w“, “crop-x“, “crop-y“

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://github.com/jarrekk/imgkit#usage
  2. Use the options parameter given in the description to crop the image
  3. Try with several positive and negative values for “crop-h“, “crop-w“, “crop-x“, “crop-y“ and check the image output

Expected behavior
There should be some standard pattern of output after using these crop options. Also need some more documentation support for these options while converting html to image.

  • OS: [MacOSX]
  • IMGkit Version [imgkit 1.2.2]
  • wkhtmltopdf Version [0.12.6]

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions