|
|
ImageInfo plugin
|
Previous Topic
Next Topic
|
| Message |
Author |
Posted: Tue Mar 09, 2010 8:34 am Subject: ImageInfo plugin |
|
|
Daniel Lemke
|
|
Is there a reason why the “latest” (2007-01-17) version of ImageInfo plugin is not part of the SA source?
----------------------------------------------------
JAM Software GmbH
Geschäftsführer: Joachim Marder
Max-Planck-Str. 22 * 54296 Trier * Germany
Tel: 0651-145 653 -0 * Fax: 0651-145 653 -29
Handelsregister Nr. HRB 4920 (AG Wittlich) http://www.jam-software.de |
| Back to top |
|
 |
Posted: Tue Mar 09, 2010 3:47 pm Subject: ImageInfo plugin |
|
|
Kevin A. McGrail
|
|
On 3/9/2010 8:34 AM, Daniel Lemke wrote: | Quote: | <![endif]--> <![endif]-->
Is there a reason why the “latest” (2007-01-17) version of ImageInfo plugin is not part of the SA source?
| I have not researched this but I would guess a bug was never opened for this purpose or it was just a CLA/Licensing issue. Overall, the changes appear straightforward with the major addition being the image_name_regex. I've reviewed the code and create a diff patch.
Dallas, could you open a bug to update this?
| Quote: | From reviewing the rules and the code, the attached patch and these additional rules are the differences for consideration which you could add as patches.
|
# double dot gifs (from Kevin)
body CG_DOUBLEDOT_GIF eval:image_name_regex('/^\w{2,9}\.\.gif$/')
describe CG_DOUBLEDOT_GIF Double dotted image name
score CG_DOUBLEDOT_GIF 1.4
# emails containing pictures from digital cameras (from Kevin)
# although i think most of these images will be >256kb (unless they
# have been post-processed) so SA probably isnt scanning them.
# Nikon/Sony: DSC00001.JPG
body CG_SONY_JPG eval:image_name_regex('/^DSC\d{5}\.JPG$/')
describe CG_SONY_JPG Looks like a Sony/Nikon digital camera shot
score CG_SONY_JPG -0.1
# Fuji: DSCF0001.JPG
body CG_FUJI_JPG eval:image_name_regex('/^DSCF\d{4}\.JPG$/')
describe CG_FUJI_JPG Looks like a Fuji digital camera shot
score CG_FUJI_JPG -0.1
# Canon: BODY0001.JPG
body CG_CANON_JPG eval:image_name_regex('/^\w{4}\d{4}\.JPG$/')
describe CG_CANON_JPG Canon's semi random image names
score CG_CANON_JPG -0.1
regards,
KAM |
| Back to top |
|
 |
|