ngImgCrop icon indicating copy to clipboard operation
ngImgCrop copied to clipboard

Use different width and height

Open developandbehappy opened this issue 8 years ago • 6 comments

Hello guys, i want using different width and height for my image crop is it possible?

developandbehappy avatar Apr 06 '16 08:04 developandbehappy

@zidein07 Take a look at this example https://github.com/ignacio-chiazzo/ngImgCropTool-Examples.

ignacio-chiazzo avatar Apr 11 '16 04:04 ignacio-chiazzo

@ignacio-chiazzo hey! i was trying to replicate your code, but for some reason i can't. what i did was copy it to the original live demo in js fiddle and from what i gather "rectangle" is not a valid name, so it defaults back to "circle". Help would be much appreciated. Regards.

arturskeeled avatar Jun 24 '16 17:06 arturskeeled

@ignacio-chiazzo & @arturskeeled , I am trying to do exactly the same. Would be useful! I also see aspect-ratio="1.7", but this doesn't seem to do anything. Thanks!

spiralcrew-ou avatar Jun 24 '16 17:06 spiralcrew-ou

Try to use the extended version since it is in active development: https://github.com/CrackerakiUA/ngImgCropFullExtended/

albertonaperijr avatar Jun 24 '16 19:06 albertonaperijr

@albertonaperijr, thanks for that version!

spiralcrew-ou avatar Jun 26 '16 12:06 spiralcrew-ou

@88media @arturskeeled You are right!, the version that I was using is not up to date, before this directive I was using rectangle instead of square. To use a rectangle just add _area-type="square" , take a look at fiddle.

Feel free to make a PR

ignacio-chiazzo avatar Jun 26 '16 17:06 ignacio-chiazzo