cordova-plugin-crop icon indicating copy to clipboard operation
cordova-plugin-crop copied to clipboard

final image size is bigger then targetWidth and targetHeight

Open lordcoste opened this issue 6 years ago • 9 comments

As title says the final cropped image is way bigger then targetWidth and targetHeight. The crop is happening and the ratio is fine (square), but the size is not.

I'm using ionic 4.

cordova plugin list: cordova-plugin-crop 0.3.1 "CropPlugin"

package.json "cordova-plugin-crop": "0.4.0", "@ionic-native/crop": "^5.0.0",

lordcoste avatar Feb 04 '19 12:02 lordcoste

@jeduan can this be updated to work with Ionic 4?

schmitzt3 avatar Mar 11 '19 13:03 schmitzt3

Same here. I get big photo (even scaled up) after crop. @lordcoste have you solved it?

{
    quality: 50,
    targetWidth: 512,
   targetHeight: 512,
}

rafalschmidt97 avatar Jul 10 '19 22:07 rafalschmidt97

@jeduan Why isn't this commit reflected on v0.4.0? https://github.com/jeduan/cordova-plugin-crop/commit/7f3aafac7d4e301d4e4f70c6190fc214eda567f8

smiledev1230 avatar Apr 21 '20 17:04 smiledev1230

@smiledev1230 this plugin isn't maintained, hasn't received updates in more than 2 years, and you probably shouldn't use it in new projects. Feel free to take the code and reuse it for your purposes.

jeduan avatar Apr 21 '20 17:04 jeduan

Why isn't the plugin maintained? If so, which plugin shall I use instead of this?

smiledev1230 avatar Apr 21 '20 17:04 smiledev1230

@smiledev1230 I haven't used Cordova in over 4 years. best of luck in your endeavors!

jeduan avatar Apr 21 '20 17:04 jeduan

Thanks for your support. So who is the owner of this plugin?

smiledev1230 avatar Apr 21 '20 17:04 smiledev1230

@smiledev1230 I believe you are now.

jeduan avatar Apr 21 '20 18:04 jeduan

I just said about this plugin to Ionic help center. I will use this plugin for while they are updating this plugin or new plugin. Thank a lot for your support.

smiledev1230 avatar Apr 21 '20 18:04 smiledev1230