https://github.com/par7133/wp_image_editor_gd
WordPress Image Editor Class for Image Manipulation through GD (clean standalone implementation) - GPL License
https://github.com/par7133/wp_image_editor_gd
class editor gd image manipulation php wordpress
Last synced: 10 months ago
JSON representation
WordPress Image Editor Class for Image Manipulation through GD (clean standalone implementation) - GPL License
- Host: GitHub
- URL: https://github.com/par7133/wp_image_editor_gd
- Owner: par7133
- License: other
- Created: 2021-09-26T10:27:14.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-09T14:07:31.000Z (over 1 year ago)
- Last Synced: 2025-01-12T15:46:03.342Z (12 months ago)
- Topics: class, editor, gd, image, manipulation, php, wordpress
- Language: PHP
- Homepage: https://exp-wp-image-editor.5mode-lab.com
- Size: 243 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WP_Image_Editor_GD
WordPress Image Editor Class for Image Manipulation through GD (clean standalone implementation)
### Some important functionalities have been commented out and / or changed:
### // l10n.php
function __( $text, $domain = 'default' ) {
// [ Changed to facilitate extrapolaation of the code ]
//return translate( $text, $domain );
return $text;
}
### // class-wp-image-editor-gd.php
public function load() {
if ( $this->image ) {
return true;
}
if ( ! is_file( $this->file ) && ! preg_match( '|^https?://|', $this->file ) ) {
return new WP_Error( 'error_loading_image', __( 'File doesn’t exist?' ), $this->file );
}
// Set artificially high because GD uses uncompressed images in memory.
// [ Commented to facilitate extrapolaation of the code ]
//wp_raise_memory_limit( 'image' );
[...]
WordPress - Web publishing software
Copyright 2001-2002 Michel Valdrighi - https://cafelog.com
Copyright 2011-2021 WordPress, and contributors
Copyright 2021 5 Mode
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.