The difference between art and pornography is a discussion that is likely to continue indefinitely, at least so long as it is meaningful to distinguish between them (and this will continue so long as porn is discriminated against). I think there are two main reasons for this. First, "art" and "pornography" are both labels with very vague definitions. People have argued what qualifies as "art" and what qualifies as "pornography" separately for a long time. What does it mean to be art? At what point does something become pornographic? The other reason for the continued discussion is that there is an overlap between art and pornography, yet they are not equivalent - think of it as a Venn diagram. There is some art that can be considered pornographic, and there is some pornography that can be considered artistic, but there will always be examples of art that is clearly not pornography, and pornography that is clearly not art. And to complicate things further, the placement of the circles in the Venn diagram depends on one's definitions of art and pornography, which, vague as they are, is something we as a collective haven't been able to agree on.
Nevertheless, as an erotic artist who sees what I do as being qualitatively different from pornography, I often consider ways that I might explain how my work is separate from porn, even if it may sometimes be considered pornographic. When we talk about the issue directly, there are all sorts of assumptions involved, as well as the value judgments we make about sexuality and anything dealing with it. So let's, for a moment, transfer the issue to something benign - rather than pictures of nudity, let us consider pictures of cats.
There are two very different approaches to taking pictures of cats (or anything else). And which one you use has a lot to do with your intent as the photographer. Are you taking pictures of cats because you think cats are beautiful and you want to share that beauty with the world? Or are you taking pictures of cats simply because you like cats, you like looking at cats, you know that other people like looking at cats, and you want to take lots of pictures for other people to look at? I'm not saying the difference in these approaches isn't subtle, as there are a lot of similarities, but the result - the pictures that are taken and shared - often reveal a fundamental difference of intent.
To play on the comparison further, I will refer to "cats" as pussies from here on out. You can imagine that there are a lot of people out there who love pussies and get a lot of enjoyment out of looking at other people's pussies. They aren't particularly concerned about the artistic quality of these pictures - obviously, they'll like prettier pictures more, but they like the bad ones too because what they're really in it for isn't the aesthetic quality of the pictures but simply the opportunity to look at pussies. Lots of 'em.
Now imagine an artist who recognizes a quality of beauty inherent to pussies, and wants to emphasize that quality in his photographs, and share it with others. He takes lots of pictures of pussies, but he doesn't share them all, because they're not all particularly good pictures. His intent isn't merely to take pictures of pussies, but to take good pictures of pussies. And so he puts in effort to take better pictures, and he is less enthusiastic about sharing the bad pictures than our previous pussy photographer - because for him, it's not just about looking at pussies and sharing them with people, it's about capturing an aesthetic beauty, elusive and captivating, and sharing that with people. That's the art. It's that ineffable quality one is chasing.
And I'll reiterate that this is just an example to get the concept across. It would be far too simplistic to say that the difference between art and pornography is merely the quality of the images, and it would be pretentious for me to say that an artist perceives something ethereal where the pornographer sees just flesh. Although both of these things may be true on some level. I'm not trying to draw up stereotypes - because I don't think you should use them - and I still maintain that an artist can be a pornographer and that a pornographer can be an artist. But hopefully this example will give you some idea of what it means to create porn versus what it means to create art.