Closed DanieleSassoli closed 4 years ago
What browser are you using?
chrome, but this script is running server-side, with nodejs. Sorry I should have mentioned that.
That certainly seems high, but Caman tends to struggle with speed on high resolution images. A 5.22MB jpeg sounds like a very large image.
Ok, but the images wich I'm going to deal with will be all in high resolution. I've read in #82 that setting allowRevert could increase performances, I tried but the time didn't change at all. Are there any other thing's I can try?
Hy, I should probably open a new issue for this one, it's that I can't understand the image file size after CamanJS manipulation. My jpeg image with all the filter I described in the opening post generated another jpeg image(obviously) of 1.4 MB, and this is the good part, because with the greyscale preset the image becamed nealy black and white, but if I get rid of all the filters and everything my 5.22 MB jpeg becomes a 22 MB jpeg, is there a reason?
In NodeJS it will only save the image as a PNG. Adding JPG export support should be a new issue.
Hy, I don't need extremly fast performances but I would like to be sure that any image editing on any photo will take less than 45 seconds to be completed. I have done some tests and for a jpeg image of 5.22 MB with this effects: {"saturation":"5","sepia":"10","vibrance":"10","sharpen":"6","brightness":"5","contrast":"3","exposure":"5"} and preset = greyscale, my program takes up to 1 minute and 23 seconds to complete, I think that this is definitly to bad and I hope I'm getting something wrong or that there is a way I can achieve better perfomances, this is my code
I'm using a dual-core machine with 4 GB of ram with ubuntu 14.04.