0

I have a huge image file with more than 1200 objects on it. I need to crop one by one with 300x300 pixels. I can do it manually by selecting the area of object with crop tool, and crop it and save it. I would needed couple of days/weeks to achieve this :-) Are there any patterns in Gimp or PS that I can use or create, or how should I go about it?

  • are there any patterns to the layout of the objects within the huge image? Are they randomly placed or uniformly placed, as in the form of a checkerboard? – fred_dot_u Sep 11 '18 at 9:39
  • Hi. Welcome to GDSE. Software such as Photoshop or GIMP doesn't know what an "object" is, and so the software wouldn't be able to automatically choose what to crop. Unless the objects are in a regular grid and every crop is exactly the same, then you'll probably have to do it manually. So, how are the "objects" in the image spaced? Are they all a regular size? – Billy Kerr Sep 11 '18 at 9:53
  • If the pattern is evenly distributed try with guides and guillotine – Takkat Sep 11 '18 at 10:18
  • Thanks folks! The objects are randomly placed, except horizontally where I can crop that part but not vertically. There is a space between the objects. I'm afraid that I need to do it manually. What a tedious task. – Blackcoat77 Sep 11 '18 at 10:36
0

With Gimp

If the objects are regular tiles of a know dimension, there are several Gimp scripts around to chop the image and export the individual tiles, such as the ofn-tiles script you will find here.

  • Unfortunately they are not. – Blackcoat77 Sep 11 '18 at 19:47
  • See ofn-extract-objects, same place. You have to make the background transparent first (fuzzy select, Select> Grow by 2px, Color>Color to alpha. Otherwise post an extract of the image. – xenoid Sep 11 '18 at 19:58
  • Will try that. Unfortunately I can't post an extract of the image due to copyrights – Blackcoat77 Sep 11 '18 at 20:06
  • Copyright doesn't forbid an extract for citation purposes. – xenoid Sep 11 '18 at 20:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.