protected function ImageAPIOptimizeProcessorBinaryBase::sanitizeFilename in Image Optimize Binaries 8
Sanitize the given path for binary processors.
Parameters
$drupal_filepath: The file path to sanitize.
Return value
string The sanitized file path.
9 calls to ImageAPIOptimizeProcessorBinaryBase::sanitizeFilename()
- AdvDef::applyToImage in src/
Plugin/ ImageAPIOptimizeProcessor/ AdvDef.php - AdvPng::applyToImage in src/
Plugin/ ImageAPIOptimizeProcessor/ AdvPng.php - JfifRemove::applyToImage in src/
Plugin/ ImageAPIOptimizeProcessor/ JfifRemove.php - JpegOptim::applyToImage in src/
Plugin/ ImageAPIOptimizeProcessor/ JpegOptim.php - JpegTran::applyToImage in src/
Plugin/ ImageAPIOptimizeProcessor/ JpegTran.php
File
- src/
ImageAPIOptimizeProcessorBinaryBase.php, line 147
Class
- ImageAPIOptimizeProcessorBinaryBase
- Base class for image optimizations that run local binaries.
Namespace
Drupal\imageapi_optimize_binariesCode
protected function sanitizeFilename($drupal_filepath) {
return $this->fileSystem
->realpath($drupal_filepath);
}