Lines Matching defs:width

11  * width, height, ...)
60 // no width ok
67 // no width ok
144 throw new ExceptionBadArgument("The width value ($requestedWidth) is not a valid integer", FetcherImage::CANONICAL, 0, $e);
176 * For a raster image, the internal width
202 * It's needed for an img tag to set the img `width` and `height` that pass the
221 * It's needed for an img tag to set the img `width` and `height` that pass the
236 * or if the width and height were specified.
243 * It's needed for an img tag to set the img `width` and `height` that pass the
256 * Note: requested weight and width throw a `not found` if width / height == 0
266 * Giving width and height, check that the aspect ratio is the same
269 * @param $width
272 function checkLogicalRatioAgainstTargetRatio($width, $height)
275 * Check of height and width dimension
289 $height * $targetRatio >= $width - 1
291 $height * $targetRatio <= $width + 1
295 $width / $targetRatio >= $height - 1
297 $width / $targetRatio <= $height + 1
303 $imgTagRatio = $width / $height;
304 LogUtility::msg("Internal Error: The width ($width) and height ($height) calculated for the image ($this) does not pass the ratio test. They have a ratio of ($imgTagRatio) while the target dimension ratio is ($targetRatio)");
316 * * with `200`, the target image has a {@link FetcherTraitImage::getTargetWidth() logical width} of 200 and a {@link FetcherTraitImage::getTargetHeight() logical height} that is scaled down by the {@link FetcherTraitImage::getIntrinsicAspectRatio() instrinsic ratio}
317 * * with ''0x20'', the target image has a {@link FetcherTraitImage::getTargetHeight() logical height} of 20 and a {@link FetcherTraitImage::getTargetWidth() logical width} that is scaled down by the {@link FetcherTraitImage::getIntrinsicAspectRatio() instrinsic ratio}
334 * Scaled down by width
337 $width = $this->getRequestedWidth();
343 return self::round($width / $ratio);
345 // no width
365 * The logical width is the width of the target image calculated from the requested dimension
368 * * with `200`, the target image has a {@link FetcherTraitImage::getTargetWidth() logical width} of 200 and a {@link FetcherTraitImage::getTargetHeight() logical height} that is scaled down by the {@link FetcherTraitImage::getIntrinsicAspectRatio() instrinsic ratio}
369 * * with ''0x20'', the target image has a {@link FetcherTraitImage::getTargetHeight() logical height} of 20 and a {@link FetcherTraitImage::getTargetWidth() logical width} that is scaled down by the {@link FetcherTraitImage::getIntrinsicAspectRatio() instrinsic ratio}
380 // no requested width
416 * @throws ExceptionNotFound - if no requested width was asked
421 throw new ExceptionNotFound("No width was requested");
446 * The fetch.php file takes int as value for width and height
448 * This is important because the security token is based on width and height
466 * Return the width and height of the image
478 * Trying to crop on the width