[Wikidata-bugs] [Maniphest] [Commented On] T76827: Image thumbnail urls should be included where applicable in wikidata API response for commonsMedia

2015-08-14 Thread Jane023
Jane023 added a comment.

Getting back to the original comment, I think we should be thinking in terms of 
creating an export data package that can be used by any Wikimedia project or 
any external party. Think infobox for Wikipedia and image template  for 
Commons. Each Wikimedia project should have its own import and export wizard 
for such data packages. In this scenario, the sizing of the image can be 
something that the consuming project can tweak based on their own import data 
package wizard. Magnus has sort of created an export data package with his 
prepbio  tool, but it would be best if this was a two-step process, i.e. 1) 
export wikidata item to datapackage, followed by import datapackage to English 
Wikipedia (or to Dutch Wikipedia, or for painting items, to Wiki Commons 
artwork template, etc). The other way around it would be nice to have a Commons 
exporter to use for item creation on Wikidata


TASK DETAIL
  https://phabricator.wikimedia.org/T76827

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Jane023
Cc: Jane023, Steinsplitter, Ricordisamoa, brion, MaxSem, Addshore, 
JanZerebecki, aude, MZMcBride, Aklapper, Lydia_Pintscher, Jdlrobson, daniel, 
Wikidata-bugs, Malyacko



___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T76827: Image thumbnail urls should be included where applicable in wikidata API response for commonsMedia

2015-04-17 Thread daniel
daniel added a comment.

The thumbnail URL should probably not be part of the data value as such. I 
propose to rather have multiple data-values: one for the media id (the file 
name), one for the image description page, and one for the actual file URL. 
Perhaps another one for the thumbnail URL, or a thumbnail URL pattern, where 
the desired size can be filled in.


TASK DETAIL
  https://phabricator.wikimedia.org/T76827

REPLY HANDLER ACTIONS
  Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign 
username.

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: brion, MaxSem, Addshore, JanZerebecki, aude, MZMcBride, Aklapper, 
Lydia_Pintscher, Jdlrobson, daniel, Wikidata-bugs



___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T76827: Image thumbnail urls should be included where applicable in wikidata API response for commonsMedia

2015-03-19 Thread Jdlrobson
Jdlrobson added a comment.

Ping @MaxSem @Brion would this really fry the cluster? Could thumb.php not 
simply be updated to redirect to the image file itself?


TASK DETAIL
  https://phabricator.wikimedia.org/T76827

REPLY HANDLER ACTIONS
  Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign 
username.

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Jdlrobson
Cc: brion, MaxSem, Addshore, JanZerebecki, aude, MZMcBride, Aklapper, 
Lydia_Pintscher, Jdlrobson, daniel, Wikidata-bugs



___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T76827: Image thumbnail urls should be included where applicable in wikidata API response for commonsMedia

2015-03-19 Thread brion
brion added a comment.

(If the redirect gets cached that'd still have the roundtrip, though the first 
request would be cheaper once the thumbnail's created as we'd avoid hitting PHP 
app servers.)


TASK DETAIL
  https://phabricator.wikimedia.org/T76827

REPLY HANDLER ACTIONS
  Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign 
username.

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: brion
Cc: brion, MaxSem, Addshore, JanZerebecki, aude, MZMcBride, Aklapper, 
Lydia_Pintscher, Jdlrobson, daniel, Wikidata-bugs



___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T76827: Image thumbnail urls should be included where applicable in wikidata API response for commonsMedia

2015-03-19 Thread brion
brion added a comment.

Hmm, well if thumb.php redirected you'd have an extra round-trip plus the 
overhead of hitting the PHP app servers in the first place... might not be 
ideal either. :(


TASK DETAIL
  https://phabricator.wikimedia.org/T76827

REPLY HANDLER ACTIONS
  Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign 
username.

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: brion
Cc: brion, MaxSem, Addshore, JanZerebecki, aude, MZMcBride, Aklapper, 
Lydia_Pintscher, Jdlrobson, daniel, Wikidata-bugs



___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T76827: Image thumbnail urls should be included where applicable in wikidata API response for commonsMedia

2015-02-26 Thread brion
brion added a subscriber: brion.
brion added a comment.

Note that the thumbnail size will need to be selectable through some input 
variable if you stuff it into one API req like this -- suitable size will 
depend on the device and how the client software chooses to show thumbs.

(Note another workaround is to go ahead and do a prop=imageinfo request on all 
the given files as a second API hit. That's two round trips though which is 
sad, but at least you don't have to do one per image!)


TASK DETAIL
  https://phabricator.wikimedia.org/T76827

REPLY HANDLER ACTIONS
  Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign 
username.

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lydia_Pintscher, brion
Cc: brion, MaxSem, Addshore, JanZerebecki, aude, MZMcBride, Aklapper, 
Lydia_Pintscher, Jdlrobson, daniel, Wikidata-bugs, Jdouglas



___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T76827: Image thumbnail urls should be included where applicable in wikidata API response for commonsMedia

2015-02-26 Thread Jdlrobson
Jdlrobson added a comment.

I'm trying to avoid any roundtrips. It's too expensive in this use case :(


TASK DETAIL
  https://phabricator.wikimedia.org/T76827

REPLY HANDLER ACTIONS
  Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign 
username.

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lydia_Pintscher, Jdlrobson
Cc: brion, MaxSem, Addshore, JanZerebecki, aude, MZMcBride, Aklapper, 
Lydia_Pintscher, Jdlrobson, daniel, Wikidata-bugs, Jdouglas



___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T76827: Image thumbnail urls should be included where applicable in wikidata API response for commonsMedia

2015-01-09 Thread Addshore
Addshore added a comment.

For example 
https://upload.wikimedia.org/wikipedia/commons/thumb/c/c9/Fuerteventura_sunset_leftrocks.JPG/1024px-Fuerteventura_sunset_leftrocks.JPG
 ???

$uploadUrl/$site/$lang/thumb/$hash1/$hash2/$filename/$width-$filename

Where $hash1 = first char of the hash of the filename and $hash2 is the first 2

Or are we looking for something else? :D


TASK DETAIL
  https://phabricator.wikimedia.org/T76827

REPLY HANDLER ACTIONS
  Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign 
username.

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Addshore
Cc: Aklapper, Jdlrobson, daniel, aude, JanZerebecki, Lydia_Pintscher, 
MZMcBride, Addshore, Wikidata-bugs



___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T76827: Image thumbnail urls should be included where applicable in wikidata API response for commonsMedia

2014-12-11 Thread aude
aude added a comment.

i think there is another api module that can provide the thumb url, but 
question is if/how to combine these results. i don't know that we want this in 
the core wikibase serialization format (e.g. stored in the database that way) 
and not sure if that should be an option in getentities itself or done wnother 
way


TASK DETAIL
  https://phabricator.wikimedia.org/T76827

REPLY HANDLER ACTIONS
  Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign 
username.

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: aude
Cc: Aklapper, Jdlrobson, daniel, aude, JanZerebecki, Lydia_Pintscher, 
MZMcBride, Wikidata-bugs



___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T76827: Image thumbnail urls should be included where applicable in wikidata API response for commonsMedia

2014-12-11 Thread aude
aude added a comment.

i'm having some trouble finding how to get the thumburl, except for use of 
pageimages prop (provided by 
https://www.mediawiki.org/wiki/Extension:PageImages)

convinced there must be a way, but maybe not as easy.


TASK DETAIL
  https://phabricator.wikimedia.org/T76827

REPLY HANDLER ACTIONS
  Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign 
username.

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: aude
Cc: Aklapper, Jdlrobson, daniel, aude, JanZerebecki, Lydia_Pintscher, 
MZMcBride, Wikidata-bugs



___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T76827: Image thumbnail urls should be included where applicable in wikidata API response for commonsMedia

2014-12-05 Thread Jdlrobson
Jdlrobson added a comment.

Currently I have a huge md5 library to do this and I'd rather not resort to 
that as the code is not reusable enough.

Would be interested to hear other clever ideas.

TASK DETAIL
  https://phabricator.wikimedia.org/T76827

REPLY HANDLER ACTIONS
  Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign 
username.

To: Jdlrobson
Cc: Aklapper, Jdlrobson, daniel, aude, JanZerebecki, Lydia_Pintscher, 
Wikidata-bugs



___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs