Today I decided to scan an old album of photos from almost 30 years ago. To save some time and effort I started scanning the photos three at a time and then four at a time. Which of course means that photos need to be split later. For this I used this prompt with Gemini and it worked as a charm. First time I do not have to change anything in the code.
Build an artifact that lets me split a photo into several subphotos of equal size.
There needs to be a field in which the user can select the photo (upload from computer or paste).
There needs to be a field with a template for name of resulting subphotos
Then the user has three options to split the photos:
3 photos horizontal split
3 photos vertical split
4 photos
After one of these three options is selected the user will be able to review the result before each photo is saved (some guidelines will be overimposed to the original photoo). It will be possible to adjust the guidelines horizontally and vertically as appropriate)
Once reviewed it will be possible for the user to download each single photo. The name of the files will include the template provided previously by the user plus a string with time stamp to avoid duplications and overwriting existing files.
No React.
No comments:
Post a Comment