Photography · · 11 min read
AI in Photography
An image generator redraws every pixel of the photo you give it, and most of the AI buttons in a photo editor don't.
Photograph © Ken Reid
AI in Photography
My photo from Falkland Hill in Fife is three exposures on my old Canon 350d, merged into one HDR image in Photomatix. It's on this site as a photograph, with a caption saying it's a composite.
If I'd uploaded that file to an image generator and typed "make it more dramatic", what came back wouldn't be my photo any more. It'd be a new picture that looks a lot like mine, because a generator like Stable Diffusion redraws the whole frame, every single pixel, based around an idea of what your original image was. That being said, the majority of the AI features in Lightroom and Photoshop don't work like that. They pick which pixels an ordinary edit applies to, or they work out new values for pixels from the pixels around them, or they fill one hole that you drew yourself. Both of these are bundled as "AI editing", and both are generally not worth the hype and the outcome is often awful.
Quick jargon guide
- HDR: several exposures of the same scene merged into one image, so the bright bits and the dark bits both keep their detail.
- Raw file: the sensor's readings as recorded, before the camera or an editor turns them into a picture.
- Demosaicing: most sensors record one colour per photosite, so software works out the missing colours for every pixel from its neighbours.
- Image-to-image: giving an image generator a picture to start from, usually with a text prompt as well.
- Latent space: the compressed grid of numbers a model like Stable Diffusion works in. A decoder turns it back into pixels at the end.
- Strength: in image-to-image, how much noise goes onto your picture before the model redraws it, from 0 to 1.
- Mask: a selection saying which pixels an edit applies to.
- Dodging and burning: darkroom terms for giving part of a print less light, so it comes out lighter, or more light, so it comes out darker.
What a generator does to your photo
Stable Diffusion is an easy go-to example because it's easy to inspect the workings behind it. The documentation for Hugging Face's diffusers library is pretty plain about image-to-image: your picture "is encoded to latent space and noise is added to it", the model predicts that noise and removes it, and then "a decoder decodes the new latent image back into an image."[1] The encoder squashes your photo a lot on the way in. Stable Diffusion uses what its README calls "a downsampling-factor 8 autoencoder"[2], which divides the width and the height by 8. A 512 by 512 photo becomes a 64 by 64 grid: 262,144 pixels going in, 4,096 positions in the latent grid, one for every 64 pixels. Whatever comes out the other end, the decoder drew it from that grid.
How far the result drifts from your photo is set by a number called strength. It decides how much noise goes on before the model starts cleaning it off. With 50 steps and a strength of 0.8, the docs say, you add 40 steps of noise and then denoise for 40 steps. At 1.0 "the initial image is more or less ignored". At a low strength the result can look almost the same as your photo, but it has still been squashed, had noise added and been redrawn by the decoder. The original Stable Diffusion README warns that values near 1.0 "allow for lots of variations but will also produce images that are not semantically consistent with the input" (a picture of something else, basically).
The README says image-to-image uses "a diffusion-denoising mechanism as first proposed by SDEdit"[2], a 2021 paper by Chenlin Meng and colleagues, which "first adds noise to the input, then subsequently denoises the resulting image". Their examples start from hand-drawn coloured strokes and end as realistic pictures, and the paper describes the whole job as balancing "faithfulness to the user input" against realism.[3]
What the buttons in the editor do
I'm using Adobe's tools as the examples because their help pages say what each one does. I'm speaking as a photographer with experience in Lightroom, Photoshop, Rawtherapee, Photomatix and darktable. And Snapseed, if you count Android editing. I've tried various AI tools within these, and seen videos on them, too. Some of this I've done for my jobs, for example when I worked at the University of Michigan, I was expected to be knowledgeable about modern AI techniques, so I could readily discuss a variety of topics with faculty with some confidence (though I didn't have to be an expert in everything, I aimed to at least have an abstract working knowledge of various things).
Select Subject, Select Sky and Select People in Lightroom Classic are, in Adobe's words, "backed by Artificial Intelligence".[4] You click the button, a model finds the sky, and Lightroom lays a mask over it. That's the AI part done. Then you drag the same sliders you'd use on the whole photo (exposure, contrast, temperature, etc.) and they only apply inside the mask.
Denoise is the tricky one. Eric Chan, who worked on it, wrote an explainer in 2023: it's a deep convolutional neural network, trained on "millions of pairs of high-noise and low-noise image patches", and it
Content-Aware Fill came to Photoshop in CS5. It's built on PatchMatch, which Connelly Barnes, Eli Shechtman, Adam Finkelstein and Dan Goldman published in 2009 as a fast way of "finding approximate nearest neighbor matches between image patches".[6][7] If you draw round a bin in the corner of a shot, it looks for small patches elsewhere in the same photo that fit the hole and copies them in. The result can be completely convincing, and it's still a lie about the scene (there was a bin there!), but the fill is made of patches of your own photo, just from a different part of it.
As you may have noticed, the techniques described in the last two paragraphs are not actually AI in the form that many discuss now. They are not generative. These traditional AI techniques are, in my opinion, much less controversial.
Generative Fill, however, does use a generator, on the part you select. Photoshop's help page has you use a selection tool "to define the area you want to edit", type a prompt (or leave it blank and let Photoshop fill the selection from the pixels around it), and then pick one of the variations it gives you.[8] The model picker lists Adobe's own Firefly models next to partner models called FLUX and Gemini. The pixels inside the selection are invented, the way everything in the last section was, and the rest of the frame stays as you shot it. However, I have to say that it does a pretty awful job most of the time. It's actually shockingly bad considering the incredible improvements to other models in recent months.
Where I draw the line
World Press Photo has already had to speak their mind on this, and their rules for the 2026 contest are great.[9] No synthetic images and no generative fill, and using either gets an entry disqualified. Denoise, automatic adjustments and "object selection for local adjustments" are allowed, as long as they don't "introduce new information to the image, nor remove information from the image that was captured by the camera." AI enlargers like Adobe Super Resolution and Topaz Photo AI are banned because they "introduce new information to enlarge and sharpen images". Removing sensor dust is fine, and removing people or objects from the frame counts as manipulation.
So World Press Photo's rule isn't about AI, it's about where the information came from. Content-Aware Fill on the bin fails it, and PatchMatch has no machine learning in it at all. Denoise and Super Resolution are both trained models from Adobe (Chan's post says Michaël Gharbi, who built the Denoise models with Bo Sun, built Super Resolution before that), and only Denoise is allowed.
In 2023 Pseudomnesia: The Electrician, a picture the German photographer Boris Eldagsen made with DALL-E 2, won the Creative category of the Sony World Photography Awards open competition. He turned the prize down, saying "AI images and photography should not compete with each other in an award like this."[10] The organisers accused him of "deliberate attempts at misleading us", which is fair, but also at a time where our knowledge of such models was novice, and as a society we are still learning. I'm much more forgiving of our uses of GenAI in the 'early days'.
Google puts its line in a similar place. Photos edited in Google Photos with Magic Editor or Magic Eraser carry metadata, to a press industry standard (IPTC), saying they've "been edited using generative AI", and the app now shows that in the photo's details.[11] Best Take and Add Me, which blend several real frames "captured close together in time", are marked in the metadata too, as combinations that aren't generative. You can actually see this when you post photos with this metadata onto some social media platforms: I often post mini-challenges on Threads for photographers, and I frequently see submissions marked under the image with a mention that generative AI was used in the creation or editing of the image.
The phone in your pocket
Phones do some of this before you've even seen the picture. A 2016 paper from Sam Hasinoff and colleagues at Google describes a system that "captures, aligns, and merges a burst of frames" at the same exposure, to cut noise and stretch the dynamic range. It takes 4 seconds for a 12 megapixel image, requires no input from the user, and "ships on several mass-produced cell phones."[12] That's my Photomatix merge, done automatically, and it passes my personal requirements: every frame is light from the scene.
Samsung's moon is the other end of it. In 2023 a Reddit user downloaded a photo of the moon, "scaled it down to 170x170 pixels, blurred it to nuke the details, fullscreened it on their monitor, and took a photo with their Samsung." The phone's picture had craters in it that were not on the screen.[13] Samsung's explanation is that at 25x zoom or more the camera combines more than 10 frames. Then, when Scene Optimizer is on and "the moon has been recognized as an object", a "deep-learning-based AI detail enhancement engine" goes to work on it. The moon recognition was built from moon photos "taken from our view from the Earth".[14] Whatever you call that, the craters didn't come from light that reached the sensor, because there weren't any on the monitor. So yeah, that's not great.
Samsung does say how to switch it off: Camera, Camera Settings, Scene Optimizer, Off.
Common questions
Is a masked edit any different from what people did in the darkroom?
Not much. Adobe's own help page says a local exposure change "can achieve results similar to traditional dodging and burning"[4], which in a darkroom meant holding a card between the enlarger lens and the paper to keep light off part of the print.[15]
Do you use any of this on your own photos?
I don't use generative AI for photography. I do use the person detection, background detection etc.
References
- Hugging Face. Image-to-image. Diffusers documentation (accessed September 2026). https://huggingface.co/docs/diffusers/using-diffusers/img2img
- CompVis. Stable Diffusion (README). GitHub (accessed September 2026). https://github.com/CompVis/stable-diffusion
- Meng, C., He, Y., Song, Y., Song, J., Wu, J., Zhu, J.-Y., & Ermon, S. (2021). SDEdit: Guided image synthesis and editing with stochastic differential equations. arXiv:2108.01073. https://arxiv.org/abs/2108.01073
- Adobe. Masking tool. Lightroom Classic User Guide (updated 7 August 2026). https://helpx.adobe.com/lightroom-classic/desktop/process-and-develop-photos/masking.html
- Chan, E. (2023, 18 April). Denoise demystified. Adobe Blog. https://blog.adobe.com/en/publish/2023/04/18/denoise-demystified
- Barnes, C., Shechtman, E., Finkelstein, A., & Goldman, D. B. (2009). PatchMatch: A randomized correspondence algorithm for structural image editing. ACM Transactions on Graphics (Proc. SIGGRAPH 2009). https://gfx.cs.princeton.edu/pubs/Barnes_2009_PAR/
- Barnes, C. (2011). PatchMatch: A fast randomized matching algorithm with application to image and video (PhD thesis). Princeton University. https://www.cs.princeton.edu/research/techreps/885
- Adobe. Edit images with Generative Fill. Photoshop User Guide (updated 15 September 2026). https://helpx.adobe.com/photoshop/desktop/create-open-import-images/create-images/edit-images-with-generative-fill.html
- World Press Photo. What counts as manipulation. 2026 Contest verification process (accessed September 2026). https://www.worldpressphoto.org/contest/verification-process/what-counts-as-manipulation
- Seymour, T. (2023, 18 April). The camera never lies? Creator of AI image rejects prestigious photo award. The Art Newspaper. https://www.theartnewspaper.com/2023/04/18/the-camera-never-lies-creator-of-ai-image-rejects-prestigious-photo-award
- Fisher, J. (2024, 24 October). More transparency for AI edits in Google Photos. Google Blog. https://blog.google/products/photos/ai-editing-transparency/
- Hasinoff, S. W., Sharlet, D., Geiss, R., Adams, A., Barron, J. T., Kainz, F., Chen, J., & Levoy, M. (2016). Burst photography for high dynamic range and low-light imaging on mobile cameras. SIGGRAPH Asia 2016. https://research.google/pubs/burst-photography-for-high-dynamic-range-and-low-light-imaging-on-mobile-cameras/
- Currie, R. (2023, 13 March). Yes, Samsung 'fakes' its smartphone Moon photos – who cares? The Register. https://www.theregister.com/2023/03/13/samsung_fake_moon_pics/
- Samsung (2023, 15 March). How Samsung Galaxy cameras combine Super Resolution technologies with AI technology to produce high-quality images of the Moon. Samsung Mobile Press. https://www.samsungmobilepress.com/articles/how-samsung-galaxy-cameras-combine-super-resolution-technologies-with-ai-technology-to-produce-high-quality-images-of-the-moon
- Dodging and burning. Wikipedia (accessed September 2026). https://en.wikipedia.org/wiki/Dodging_and_burning