Lines Matching refs:s

164 		if (preg_match('/var:\s*(.*)/', $file, $v)) {
211 if ($firsttime && isset($this->failedImages[$file])) { // Save re-trying image URL's which have already failed
222 $this->logger->debug(sprintf('Fetching (file_get_contents) content of file "%s" with local basepath', $file), ['context' => LogContext::REMOTE_CONTENT]);
229 $this->logger->debug(sprintf('Fetching (file_get_contents) content of file "%s" with non-local basepath', $file), ['context' => LogContext::REMOTE_CONTENT]);
334 throw new \Mpdf\MpdfException(sprintf('JPG image may not use CMYK color space (%s).', $file));
338 $this->mpdf->PDFAXwarnings[] = sprintf('JPG image may not use CMYK color space - %s - (Image converted to RGB. NB This will alter the colour profile of the image.)', $file);
373 $this->mpdf->PDFAXwarnings[] = sprintf('JPG image may not use RGB color space - %s - (Image converted to CMYK. NB This will alter the colour profile of the image.)', $file);
519 // "If the source file's gamma value is greater than 1.0, it is probably a display system exponent,..."
523 // Test Case - image(s) on http://www.w3.org/TR/CSS21/intro.html - PNG has gAMA set as 1.45454
550 $this->mpdf->PDFAXwarnings[] = sprintf('PNG image may not use RGB color space - %s - (Image converted to CMYK. NB This will alter the colour profile of the image.)', $file);
571 $this->mpdf->PDFAXwarnings[] = sprintf('Transparency (alpha channel) not permitted in PDFA or PDFX files - %s - (Image converted to one without transparency.)', $file);
578 return $this->imageError($file, $firsttime, sprintf('GD library with PNG support required for image (%s)', $errpng));
583 return $this->imageError($file, $firsttime, sprintf('Error creating GD image from PNG file (%s)', $errpng));
594 throw new \Mpdf\MpdfException(sprintf('PDFA1-b does not permit images with alpha channel transparency (%s).', $file));
1382 private function translateValue($s, $bpc)
1384 $n = $this->twoBytesToInt($s);
1399 private function fourBytesToInt($s)
1401 return (ord($s[0]) << 24) + (ord($s[1]) << 16) + (ord($s[2]) << 8) + ord($s[3]);
1408 private function twoBytesToInt($s)
1410 return (ord(substr($s, 0, 1)) << 8) + ord(substr($s, 1, 1));
1423 * Throw an exception and save re-trying image URL's which have already failed
1430 throw new \Mpdf\MpdfImageException(sprintf('%s (%s)', $msg, substr($file, 0, 256)));
1433 $this->logger->warning(sprintf('%s (%s)', $msg, $file), ['context' => LogContext::IMAGES]);