js-image-carver
                                
                                
                                
                                    js-image-carver copied to clipboard
                            
                            
                            
                        output should keep aspect ratio
When both dimensions are set to the same percentage, the output image should retain the aspect ratio.
Example:
Choose 500x500px image. Put width and height to 80% and run the carving algorithm.
Expected result:
Output image is 400x400px
Actual result: Output image is 400x401px