-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get 2times image size #46
Comments
When destination size such as `dw` and `dh` is not set, NGX_HTTP_SMALL_LIGHT_COORD_INVALID_VALUE(1.e+38) is used. Usually, source size should be used.
Hi @osamunmun , Thank you for the report. I'm working at #47. |
Thanks! |
bugfix: fixed strange size calculation behavior. refs #46
Fixed in #47. |
In only cw, ch params given without dw,dh case,
|
…dnates. refs #46 When destination coordinates such as `dx` and `dy` are not set or only canvas size is set, NGX_HTTP_SMALL_LIGHT_COORD_INVALID_VALUE(1.e+38) is used. Usually, the origin coordinate should be used.
|
…dnates. refs #46 When destination coordinates such as `dx` and `dy` are not set or only canvas size is set, NGX_HTTP_SMALL_LIGHT_COORD_INVALID_VALUE(1.e+38) is used. Usually, the origin coordinate should be used.
FYI, It's the same for |
Thank you for your quick fix. |
Usually such as the case should be rare. But it seems to be good that cropping the center by default in the such case. |
Hi @osamunmun, Modified the behavior in b7a4cce. |
Thank you so much! |
I use version
0.7.0
. Withoutdw
anddh
request, the image size looks like 2 times.Maybe
MagickGetImage..
inngx_http_small_light_imagemagick.c
return wrong size?Attached image size is 774x432, but
sw
andsh
issw=1548,sh=864
.The text was updated successfully, but these errors were encountered: