Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
ef832ddf
Commit
ef832ddf
authored
14 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#855316
by aspilicious: fix newlines in image.inc.
parent
7b3d03aa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/image.inc
+10
-0
10 additions, 0 deletions
includes/image.inc
with
10 additions
and
0 deletions
includes/image.inc
+
10
−
0
View file @
ef832ddf
...
...
@@ -85,6 +85,7 @@ function image_get_toolkit() {
* An image object returned by image_load().
* @param $params
* An optional array of parameters to pass to the toolkit method.
*
* @return
* Mixed values (typically Boolean indicating successful operation).
*/
...
...
@@ -109,6 +110,7 @@ function image_toolkit_invoke($method, stdClass $image, array $params = array())
* String specifying the path of the image file.
* @param $toolkit
* An optional image toolkit name to override the default.
*
* @return
* FALSE, if the file could not be found or is not an image. Otherwise, a
* keyed array containing information about the image:
...
...
@@ -155,6 +157,7 @@ function image_get_info($filepath, $toolkit = FALSE) {
* The target width, in pixels.
* @param $height
* The target height, in pixels.
*
* @return
* TRUE or FALSE, based on success.
*
...
...
@@ -189,6 +192,7 @@ function image_scale_and_crop(stdClass $image, $width, $height) {
* @param $upscale
* Boolean indicating that files smaller than the dimensions will be scaled
* up. This generally results in a low quality image.
*
* @return
* TRUE or FALSE, based on success.
*
...
...
@@ -233,6 +237,7 @@ function image_scale(stdClass $image, $width = NULL, $height = NULL, $upscale =
* The target width, in pixels.
* @param $height
* The target height, in pixels.
*
* @return
* TRUE or FALSE, based on success.
*
...
...
@@ -259,6 +264,7 @@ function image_resize(stdClass $image, $width, $height) {
* 0xff00ff for magenta, and 0xffffff for white. For images that support
* transparency, this will default to transparent. Otherwise it will
* be white.
*
* @return
* TRUE or FALSE, based on success.
*
...
...
@@ -282,6 +288,7 @@ function image_rotate(stdClass $image, $degrees, $background = NULL) {
* The target width, in pixels.
* @param $height
* The target height, in pixels.
*
* @return
* TRUE or FALSE, based on success.
*
...
...
@@ -305,6 +312,7 @@ function image_crop(stdClass $image, $x, $y, $width, $height) {
*
* @param $image
* An image object returned by image_load().
*
* @return
* TRUE or FALSE, based on success.
*
...
...
@@ -325,6 +333,7 @@ function image_desaturate(stdClass $image) {
* Path to an image file.
* @param $toolkit
* An optional, image toolkit name to override the default.
*
* @return
* An image object or FALSE if there was a problem loading the file. The
* image object has the following properties:
...
...
@@ -367,6 +376,7 @@ function image_load($file, $toolkit = FALSE) {
* @param $destination
* Destination path where the image should be saved. If it is empty the
* original image file will be overwritten.
*
* @return
* TRUE or FALSE, based on success.
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment