Lines Matching refs:width
199 if(!$width){
200 $width = $info[0];
203 $height = round(($width * $info[1]) / $info[0]);
206 if ($maxwidth && $width > $maxwidth) {
207 $height = $height * ($maxwidth/$width);
208 $width = $maxwidth;
211 $width = $width * ($maxheight/$height);
216 if ($width) $width = (($width/96.0)*2.54);
219 return array($width, $height);
229 * @param string|null $width Alternative width
235 …public static function getImageSizeString($src, $width = NULL, $height = NULL, $preferImage=true, … argument
245 $width = $width_file.'cm';
250 $unit_width = $units->stripDigits ($width);
255 $height = $width * $ratio;
258 if ($width) $width = (($width/96.0)*2.54).'cm';
264 $width = str_replace(',', '.', $width);
266 if ($width && $height) {
268 if ($width >= 17){ // FIXME : this assumes A4 page format with 2cm margins
269 $width = $width.'" style:rel-width="100%';
272 $width = $width;
277 if (!$width) {
278 $width = '" svg:rel-width="100%';
284 return array($width, $height);