I
I
iSlayter2016-08-30 13:40:29
Images
iSlayter, 2016-08-30 13:40:29

Batch image processing (resize and weight positioning)?

Dear colleagues,
I am working with my team to develop an online storefront for a weapons store (a lot of items radically different in size and aspect ratio), we make our own photos, the right ones.
Our designer set the task of making all the photos the same width, with indents of % vertically and horizontally, and fitting the object being filmed, in the maximum size, into the allotted frames (i.e. if this is a gun, then it is elongated and we enter the maximum allowable size in width; if it is an oil bubble, then in height), with weight centering vertically and horizontally.
There are about 3000 photos in total, processed by hand - the positioning will still be different. It will cost like a cast-iron bridge. And, therefore, this option is not considered.
Please tell me how you solve such issues!
I can outsource if the price is in the range of 10-15 thousand rubles.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
GavriKos, 2016-08-30
@GavriKos

You can write a script for the same photoshop. It's a JavaScript-like language. The main problem will be in the detection in which direction the object will be extended.

M
maaGames, 2016-08-30
@maaGames

Finger to the sky.
Since the pictures are "correct", the background is uniform and white.
1. convert to black and white so that the object becomes black and the background is white
2. determine the minimum distance to black on each side
3. crop the original image from all sides by the calculated distance (after that, the size of the image is known and what it has more - width or height)
4. evenly increase in all directions by the missing number of pixels
I don't know what weighted centering is, maybe my algorithm doesn't fit.

X
Xenia Akimova, 2016-08-31
@xenia_aki

task is not fully understood. show examples of photos and examples of what needs to be done. maybe I can help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question