Property talk:P2677

From Wikidata
Jump to navigation Jump to search

Documentation

relative position within image
position of a motif within a larger image, defined by x-offset (from left), y-offset (down from top), width w, and height h of the crop region (as a percentage of the whole image) values
Data typeString
Allowed valuespct:((100|[1-9]?\d(\.\d+)?),){3}(100|[1-9]?\d(\.\d+)?)
Usage notesuse as a qualifier on P180 statements
ExamplePortrait of a Woman with a Squirrel (Q17335769) → pct:82.5,53.7,17.6,16.3
SourcePrimarily likely to be user-supplied using a specific tool; but in some cases might possibly be available from external references (note: this information should be moved to a property statement; use property source website for the property (P1896))
Formatter URLhttps://tools.wmflabs.org/zoomviewer/proxy.php?iiif=$P18/$1/,240/0/default.jpg (where $P18 is the value of property P18). (note: this information should be moved to a property statement; use property formatter URL (P1630))
Robot and gadget jobscorrespondsI would imagine a tool similar to the crop-tool on Commons, challenging the user whether can they find this item as a detail in this image, and to move a rectangle around the detail if they can.
See alsodepicts (P180)
Lists
Proposal discussionProperty proposal/Archive/48#P2677
Current uses142
Search for values
[create] Create a translatable help page (preferably in English) for this property to be included here
Scope is: the property must be used by specified way only (Help)
List of this constraint violations: Database reports/Constraint violations/P2677#scope, hourly updated report, SPARQL (new)
Format “pct:((100|[1-9]?\d(\.\d+)?),){3}(100|[1-9]?\d(\.\d+)?)”: value must be formatted using this pattern (PCRE syntax). (Help)
List of this constraint violations: Database reports/Constraint violations/P2677#Format, hourly updated report, SPARQL, SPARQL (new)

How to[edit]

The value format is based on IIIF standard, pct corresponds to percent (so it it's possible to change the image file with an image at the same ratio but not the same dimensions in pixels) and w,x,y,z numbers delimit a rectangle. Example for Idleness (Q19953492), with depicts (P180) qualifier house cat (Q146) value "pct:65,81,35,15" → https://tools.wmflabs.org/zoomviewer/proxy.php?iiif=Godward_Idleness_1900.jpg/pct:65,81,35,15/,240/0/default.jpg .
A specific tool on Crotos IIIF Cropper can be used to get the adapted values. In the same tool, it's possible to display the result ; for example : depicted items in Ancient Rome (Q14619165). --Shonagon (talk) 01:18, 22 November 2016 (UTC)

Second property needed[edit]

I just encountered this use of the property referring to a specific image file. As pointed out in the proposal discussion if we want to provide this functionality we need another property for that. --Marsupium (talk) 15:48, 19 September 2017 (UTC)

User script[edit]

The user script: User:Husky/ifff-viewer-link.js turns values of this property into working web links, in the form: https://tools.wmflabs.org/zoomviewer/proxy.php?iiif=Godward_Idleness_1900.jpg/pct:65,81,35,15/full/0/default.jpg Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 12:14, 29 June 2018 (UTC)