Skip to content

Instantly share code, notes, and snippets.

View PhilSager's full-sized avatar

Phil Sager PhilSager

  • Ohio History Connection
View GitHub Profile
@PhilSager
PhilSager / size_image.php
Last active October 12, 2015 06:07
Script to get scaled image URL from CONTENTdm reference URL
<?php
/**
* Script to get scaled image URL from CONTENTdm reference URL
* Phil Sager <[email protected]>.
*
*/
$CDM_WEBSERVICES_HOME = "https://somedomain.contentdm.oclc.org"; // web services
$CONTENTDM_HOME = "http://somedomain.somewhere.org"; // public-facing CONTENTdm domain