Meta data: Scenic photos

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
jarrarhussain
Posts: 2
Joined: 2015-05-26T06:26:39-07:00
Authentication code: 6789

Meta data: Scenic photos

Post by jarrarhussain »

Hi All,

I am new here in this forum.

Currently I am using ImageMagick 6.6.5-8 version on Linux machine. With the help of this tool I am resizing the product images but I also wants to know some meta infos like:
1- Is a scenic photo
2- Images quality

Thanks in advance.
Jarrar
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Meta data: Scenic photos

Post by fmw42 »

try

Code: Select all

identify -verbose yourimagefile
that will give you quality and also EXIF data. But I do not know what you mean by "is a scene photo"?
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Meta data: Scenic photos

Post by Bonzo »

But I do not know what you mean by "is a scene photo"?
Portrait or landscape orientation?
jarrarhussain
Posts: 2
Joined: 2015-05-26T06:26:39-07:00
Authentication code: 6789

Re: Meta data: Scenic photos

Post by jarrarhussain »

Here I am uploading a scenic and non-scenic photos.
Scenic
Image

non-Scenic
Image
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Meta data: Scenic photos

Post by fmw42 »

Image meta data does not contain that kind of information, unless someone has added a comment to identify it as scenic or non-scenic. I know of no commercial camera systems that will identify that as scenic or non-scenic automatically unless the photographer labels it manually as such.

You might determine it by assuming you have a constant background color and using -fuzz XX% -draw "matte 0,0 floodfill". where XX% is a just a few percent. Then look at the histogram to see how much of the new image is transparent. If a significant amount is transparent then it could be non-scenic.

If you have a reference non-scenic image or scenic image, you could mask out either the foreground or background, respectively, and see what is left or do an IM compare to see how close they match.
Post Reply