A
A
Alexander T.2016-12-06 13:14:53
Images
Alexander T., 2016-12-06 13:14:53

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

7 answer(s)
Y
Yustas Alexu, 2016-12-06
@TheManFromHarlem

For compression you can use https://github.com/sindresorhus/gulp-imagemin
To change permission https://github.com/mahnunchik/gulp-responsive

I
iBird Rose, 2016-12-06
@iiiBird

faststone image viewer supports batch processing

E
evnuh, 2016-12-06
@evnuh

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)

E
Evgeniy Volf, 2016-12-06
@Wolfnsex

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!

M
Mikhail Lyalin, 2016-12-06
@mr_jok

there are free programs for batch processing photos, but the specific choice is yours

S
Sergey, 2016-12-06
@Hando

So this... it's all just style="width: xxx px;" :)

D
demorred, 2016-12-06
@demorred

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 question

Ask a Question

731 491 924 answers to any question