You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm adding this again since it was relevant but just got closed without any answers.
I want to not lose image quality when cropping, so that, for example when someone selects the left half of the image as their crop area, and the original image was 3000x1000 pixels, they would get 1500x1000 pixels as their output, with same quality. Does correctly choosing pixelRatio do the job?
I have seen that one can raise pixelRatio as much as they want, and the output image could have more width and height than the original height.
I don't want to resize image! The package does it!
Just open an image with this package, do no editing at all, get the output from the controller.crop(pixelRatio: MediaQuery.of(context).devicePixelRatio), the original width and height are changed.
So, of course it depends on setting the right value for pixelRatio and I want to know how can it be calculated so there would be no resolution loss in the output if no cropping has happened (or, naturally, if the image is cropped with half width and full height, the output would have a width of originalImage.width / 2 pixels and the height of originalImage.height pixels.
This question is not unrelated at all!
The text was updated successfully, but these errors were encountered:
I'm adding this again since it was relevant but just got closed without any answers.
I want to not lose image quality when cropping, so that, for example when someone selects the left half of the image as their crop area, and the original image was 3000x1000 pixels, they would get 1500x1000 pixels as their output, with same quality. Does correctly choosing pixelRatio do the job?
I have seen that one can raise
pixelRatio
as much as they want, and the output image could have more width and height than the original height.regarding this:
#84 (comment)
I don't want to resize image! The package does it!
Just open an image with this package, do no editing at all, get the output from the
controller.crop(pixelRatio: MediaQuery.of(context).devicePixelRatio)
, the original width and height are changed.So, of course it depends on setting the right value for
pixelRatio
and I want to know how can it be calculated so there would be no resolution loss in the output if no cropping has happened (or, naturally, if the image is cropped with half width and full height, the output would have a width of originalImage.width / 2 pixels and the height of originalImage.height pixels.This question is not unrelated at all!
The text was updated successfully, but these errors were encountered: