* @return bool
*/
private function cachePageDimensions( $page = 1 ) {
+ $page = (int)$page;
+ if ( $page < 1 ) {
+ $page = 1;
+ }
+
if ( !isset( $this->dims[$page] ) ) {
if ( !$this->getHandler() ) {
return false;
}
/**
- * @return int
- */
+ * @return int
+ */
function getBitDepth() {
$gis = $this->getImageSize( $this->getLocalRefPath() );