Simon

Editing Part Photos

Recommended Posts

Greetings, Folks;

Almost every day we receive newly submitted part photos, and we really appreciate the time and effort our members put into helping us improving our website. Obviously, any photo is better than no photo at all, but as we get more and more part photos, quality becomes a determining issue, and we have to reject photo's when the quality is too low.

That is a shame, and a waste of your (and our) time. If you spend a couple of minutes to find the right part, without dirt and scratches, another few minutes to set up your lights, and camera, and to find the right angle and composition, why not spend another minute to edit your photo and turn it into a perfect part photo, which we would never reject?

If you don't know how to do that, I created a small and very basic tutorial, and published it as a new Help page. It uses a free program called GIMP and in a dozen easy steps you learn to improve the quality of all your LEGO photos, including photos of your MOCs.

If, after reading the tutorial, you have any questions, feel free to post them here. And if you give this a try, you can also share your before and after photo in this thread.

Looking forward to seeing your photos...

Take care,
Simon

Share this post


Link to post
Share on other sites

That's a great guide. Thanks for putting in the effort.

Because almost all photos taken under artificial light have some sort of tint to them, I add another intermediate step. Assuming that the picture was taken against a white background you can use the levels tool found in the colours menu to correct the entire image. In my view this gives a final piece colour closer to the actual colour. To do this open colours/levels and select the pick white point option:

image.png.cb0ebadd5262f73381e679f4f06599e8.png

 

Then click anywhere in the white background of the picture (or if using a white part then the actual part). This sets the background to white and adjusts the part's colour accordingly. Doing this to your before.jpg image gives this result, I may have gone slightly too far by selecting part of the shadow as the background but personally think the colour of the brick is better:

image.png.f825f837fc7e9581a3bd2e107b82e4c5.png

Removing the shadows from this is then a slightly easier process. I also skip your crop step because the upload process on Rebrickable provides the option to crop the image.

If you are already aware of the colour levels tool and chose to omit it then please accept my apologies for treading on your toes.

 

Share this post


Link to post
Share on other sites

You're right, I am actually re-shooting all my part photos in natural light, with better colors and more details. But your "pick white point option" is a great feature, basically resetting white balance, and I did not know that, so thanks for the suggestion. I will add a note about it in the tutorial.

As to cropping, I agree, in the Photo Submit dialog you can move and crop manually, but I tried to make the tutorial also useful for MOC photos, and then cropping can be important.

Take care,
Simon

Share this post


Link to post
Share on other sites

I would prefer if the images stayed transparent instead of white background. It would make it easier to reuse these pictures in a instruction summary. ie if you put them next to each other that square white box is taking up unnecessary space. It would be good to start to have that practice if we go the way of needing photo editing for submitted part photos.

That way the images is more useful for other stuff such as handmade instructions and would open up for things like dark mode or themes on the site or in any app using the API to fetch images.

Edited by biodreamer

Share this post


Link to post
Share on other sites

Hi, Bio.

Yes, I really like your idea, and I would love to have a black theme for the website. Right now I am using Firefox and simply overwrite the color scheme, so I am already using a black background, and transparent images would look much better to me. And it will also make them more useful.

But (as always.. -smile-), right now, only our LDraw images are png's, the element images and photos are jpgs, which don't support transparency. I am currently working on a new set of LDraw images, have about 80,000 done, still need to do another 20,000 or so, and those can have transparent backgrounds without any problem. Element images could be converted to png, but I am not sure how much additional disk space that would take, and Nathan has to decide if that is worth it.

Most of the photos, however, still have a gray background and shadows and such, and I can't think of an easy way to switch those to transparent background. The photos that I am adding (and hopefully others will follow) are basically created as pngs, but when submitted, they are converted to jpg. So there we need some system changes. Let me check with Nathan is this might be possible.

In the mean time: if an image has a perfect white background, it is very easy to convert that background to an alpha channel. Using ImageMagick:

convert old.jpg -transparent white new.png

with -fuzz you can set a fuzzy percentage (the specified percentage deviation from the pure white color to be converted to transparent as well)

Take care,
Simon

Share this post


Link to post
Share on other sites

imo diskspace is cheaper than ever but sure I am not paying the bill and the earlier you make the move the less work will it be, but sure you will have to keep both formats for a long time, but you don't need to keep adding more images that needs to be converted later. besides it less space than unprocessed images and I am sure you can run some image optimizer on them to keep them smaller.

Share this post


Link to post
Share on other sites

I talked to Nathan about this, and the new LDraw images, that will become available within the next few month, will be pngs with transparent background. As to element images and part photos, I need to find out how many we have, what the current size is, and how much that size will increase if we switch to png. Then we can make a decision.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now