Lines Matching +full:- +full:- +full:pretty

62             ->setSourcePath($path);
76 $fetchImageRaster->buildFromUrl($fetchUrl);
82 * @return int - the width of the image from the file
86 return $this->imageWidth;
107 $this->getRequestedAspectRatio();
108 $targetHeight = $this->getTargetHeight();
109 $targetWidth = $this->getTargetWidth();
110 $this->setRequestedWidth($targetWidth);
111 $this->setRequestedHeight($targetHeight);
121 $this->addLocalPathParametersToFetchUrl($url, MediaMarkup::$MEDIA_QUERY_PARAMETER);
128 * @return int - the height of the image from the file
132 return $this->imageWeight;
140 * @throws ExceptionBadSyntax - if the path is not valid image format
146 if (!FileSystems::exists($this->getSourcePath())) {
149 LogUtility::warning("The path ({$this->getSourcePath()}) does not exists");
151 // todo: https://bitsofco.de/styling-broken-images/
152 $this->imageWidth = self::FAKE_LENGTH_FOR_BROKEN_IMAGES;
153 $this->imageWeight = self::FAKE_LENGTH_FOR_BROKEN_IMAGES;
159 * $dimensions = media_image_preview_size($this->id, '', false);
161 $path = $this->getSourcePath()->toLocalPath();
162 $imageSize = getimagesize($path->toAbsolutePath()->toAbsoluteId());
166 $this->imageWidth = (int)$imageSize[0];
167 if (empty($this->imageWidth)) {
170 $this->imageWeight = (int)$imageSize[1];
171 if (empty($this->imageWeight)) {
199 $mediaWidth = $this->getIntrinsicWidth();
209 // {{wiki:dokuwiki-128.png?200x50}}
210 …// https://forum.dokuwiki.org/d/19313-bugtypo-how-to-make-a-request-to-change-the-syntax-page-on-d…
229 $requestedHeight = $this->getRequestedHeight();
232 $mediaHeight = $this->getIntrinsicHeight();
253 $intrinsicWidth = $this->getIntrinsicWidth();
284 * @throws ExceptionBadArgument - if the path is not an image
285 * @throws ExceptionBadSyntax - if the image is badly encoded
286 * @throws ExceptionNotExists - if the image does not exists
293 $this->buildOriginalPathFromTagAttributes($tagAttributes);
294 $this->analyzeImageIfNeeded();
300 * @throws ExceptionBadSyntax - if the file is badly encoded
301 * @throws ExceptionNotExists - if the file does not exists
305 $this->setOriginalPathTrait($path);
306 $this->analyzeImageIfNeeded();
318 return $this->getSourcePath()->__toString();
329 $intrinsicHeight = $this->getIntrinsicHeight();
333 * as it's pretty common with a {@link PageImageTag}