/usr/share/phpmyadmin/libraries/classes/Plugins/Transformations/Abs
Edit: /usr/share/phpmyadmin/libraries/classes/Plugins/Transformations/Abs/InlineTransformationsPlugin.php (2386B)
getOptions($options, $cfg['DefaultTransformations']['Inline']);
if (defined('PMA_IS_GD2') && PMA_IS_GD2 === 1) {
return '
![[' . htmlspecialchars($buffer) . ']]('
. Url::getFromRoute('/transformation/wrapper', array_merge($options['wrapper_params'], [
'resize' => 'jpeg',
'newWidth' => (int) $options[0],
'newHeight' => (int) $options[1],
]))
. ')
';
}
return '
![[' . htmlspecialchars($buffer) . ']](' . Url::getFromRoute('/transformation/wrapper', $options['wrapper_params'])
. ')
';
}
/* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */
/**
* Gets the transformation name of the specific plugin
*
* @return string
*/
public static function getName()
{
return 'Inline';
}
}