Property talk:P2677

From Wikidata
Jump to navigation Jump to search


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 URL$1
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)
Proposal discussionProposal discussion
Current uses1,466
Search for values
[create] Create a translatable help page (preferably in English) for this property to be included here
Scope is as qualifiers (Q54828449): 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, 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" →,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)

@Shonagon: I don't understand, it doesn't work, right? Tubezlob (🙋) 16:16, 6 October 2018 (UTC)
Hello Tubezlob. Zoomviewer is currently broken : Phabricator T206260. Best regards --Shonagon (talk) 09:07, 7 October 2018 (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:,81,35,15/full/0/default.jpg Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 12:14, 29 June 2018 (UTC)

Wikidata Image Positions tool[edit]

I wrote a new tool, Wikidata Image Positions, which shows the image areas indicated by this qualifier. You can view the image of a single item, or search for all items with a certain relative position within image (P2677) string, and I’ve set up that second mode as the formatter URL (P1630) for this property now: since relative position within image (P2677) values are usually unique, clicking the value will usually show you the image for the item that you came from. Let me know if you have any feedback, and of course, feel free to revert the formatter URL (P1630) change if you disagree with it :) --Lucas Werkmeister (talk) 17:45, 21 October 2018 (UTC)

List with examples - Salgo60 (talk) 15:13, 23 October 2018 (UTC)

Use on 3-d art[edit]

I'm finding cases where editors are using this qualifier on 3-d artwork such as statues. Is this intended? How is it defined? Examples: Q30502944, Charles XII statue (Q15120907). Bovlb (talk) 18:04, 5 February 2019 (UTC)

more examples Bovlb (talk) 19:33, 5 February 2019 (UTC)

Image area[edit]

Could this be widen to image area, more complex identication of the part of the image? --Juandev (talk) 17:21, 7 September 2019 (UTC)