It will be awesome if this module could also support if an image is not suitable for a certain style.

This is what I would ideally like -:

a) The module scans all images stored under a certain image style in the files repository
b) It then crosschecks it with the original image which by default is stored in the files directory (should be configurable)
c) It then lists a detailed report of the original image's aspect ratio, and comparing that of the style.

Ideal UI is shown below
Image_check_aspect_ratio UI

On 90% closeness to the original aspect, ratio, the entire box could be color shaded tinge of green. 100% green, anything below 50 -: red, something of that sort....

I would say feel free to ignore me, but we really need this in our project. Will be available for help if you decide to go ahead with this feature. Hoping to see this feature soon :-)

CommentFileSizeAuthor
#3 Reports___Aspect Ratio.png151.13 KBpratik60
image_check.png46.26 KBpratik60

Comments

pratik60’s picture

Issue summary: View changes
dipen chaudhary’s picture

I'd also suggest changing name of module to be more inclusive if features like above can make to the module, which will be great!

pratik60’s picture

StatusFileSize
new151.13 KB
pratik60’s picture

@Neetu - This is what I was able to come up with so far. Pic attached above. Made commits to the dev branch.

Anonymous’s picture

Hello,
I would like to make a suggestion and also hop in with some coding. This sounds like a module idea that can be extended upon.

Having an overview dashboard for image size and ratio sounds like a great thing to have, but it would nice to have more than this.

  • An API to use in a custom reference field widget to only point to entities that have images with certain properties... let's say am aspect ratio that is close to 3:2 in order to have nice looking images on a homepage slider.
  • Use a generic approach so you can have various type of overview pages not only for image size and ration, but for all sorts of things that people might think of and have a validation API exposed.
  • Have the reporting by e-mail optional (aka, a separate submodules)

As Chaudhary says in #2, it would be nice to have a more generic name like:

  • Image Checklist
  • File Checklist

You get the idea, i would go as far to naming it "Resource Checklist".

Being able to promote articles to homepage only if they have image attachments that match a certain 'checklist'. It would be nice to leverage the rules to do this (or is it to much).

pratik60’s picture

@SchnWalter - Absolutely agree, made the same suggestion to her, to call it a different module, as this module has a lot of potential. But Resource Checklist, man that sounds an idea way into the future. I'd be happy with Image/File Checklist for now :-)

I feel it needs a lot of work though.....For the imagesize aspect ratio, I submitted the code in the dev version of this module, and in that I managed to make mailing optional, as I think seeing it on the user interface website is more than enough. While running it on a website for my client, I found 6 pages of 300 images which failed! :-)

But the list is no where near accurate enough....Things which are todo
a) Finding all the images in the default directory (currently it assumes it to just be the files folder)
b) How do you figure out the desired aspect ratio for images? On a typical site, people just upload images in the required field. For an article thumbnail it may be 3:2, but on a blog thumbnail it may 2:1, and for a user it may be 1:1. I initially thought I had do a file usage query, and check node content type, and then see the desired thumbnail aspect ratio for the content type, but that's not generic enough. But the problem is some images may have no desired aspect ratio, as they may be uploaded within the body. How do I differentiate it?

For images, I would rather create a table, which I would have fid, width, height, size for all images, and that data could be fetched via a inner join etc. This way it will take a lot less time to do reports etc.

Also, optional feature would be to show those details when using images from library if we are using the media module

But I'm excited by the potential of what this module could be :-)