dadler/thumbnail-zoom — Issue #28: Add site okcupid.com
Author: dadler
Created: 2011-12-16 07:26:39+00:00
State: open
Labels: -med-, SUG

A user asks to support okcupid.com, for showing larger profile images when hovering a profile image.

Initial analysis indicates it shouldn't be too hard. They seem to follow this pattern:

thumb: http://ak2.okccdn.com/php/load_okc_image.php/images/60x60/60x60/17x73/480x536/2/1234567890.jpeg
image: http://ak0.okccdn.com/php/load_okc_image.php/images/16/150x150/558x800/17x73/480x536/0/1234567890.jpeg
tmplte: http://ak2.okccdn.com/php/load_okc_image.php/images/60x60/60x60............./17x73/480x536/2/1234567890.jpeg

It looks like starting from the thumb image's URL, replace "60x60/60x60/" with "16/150x150/558x800/". The /0/ vs /2/ at the end makes only a small difference on image size. This pattern worked on two images; we'll see after implementing it how universal it is.

The ak0 vs ak2 difference doesn't seem significant.