Answer the question
In order to leave comments, you need to log in
How do you process images before uploading to the site?
Good afternoon. Right now I need to make a gallery with a very huge number of images taken on the camera. You need to reduce image extensions and compress them. It takes a long time to do it manually, can you tell me if it can be automated?
Answer the question
In order to leave comments, you need to log in
For compression you can use https://github.com/sindresorhus/gulp-imagemin
To change permission https://github.com/mahnunchik/gulp-responsive
I do everything on the server, after uploading the file to the site.
The convert utility from the imagemagick package.
exec.Command("convert", filePath, "-resize", "500x500>", "-strip", filePath)
Pretty easy to do. Exact recommendations will not be given, tk. far from the fact that my personal preferences will suit you specifically, but on the request "batch image processing program" - you will find quite a lot of different interesting things ... Including, probably, 2/3 of this list of programs will have profiles "optimize for the web" or a set of filters/processors alternately applied to the image.
Personally, I use a self-written script that processes images directly on the server using JPEGtrim, PNGOptim, and so on, not only to resize images, but also to clean out all sorts of crap from them, such as EXIF, etc., which is clearly not for the site specifically. necessary (we do not have a photobank).
For example , here , there are a dozen of them. Choose!
there are free programs for batch processing photos, but the specific choice is yours
XnView . Mass processing (size, canvas, color replacement, metadata, etc.), batch renaming. You can save the rules, download and apply to selected folders or individual photos at any time. + Any other tools (work with a scanner, animation, etc.). Free for non-commercial use.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question