Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
image.inc:
we might want to ouput image to standart buffer, so we can set destination to NULL.
Patch for 4.7 attached.
Comment | File | Size | Author |
---|---|---|---|
#8 | image_output.patch | 1.71 KB | Dean Reilly |
#1 | image-destination 48.patch | 352 bytes | doq |
image-destination 47.patch | 352 bytes | doq | |
Comments
Comment #1
doq CreditAttribution: doq commentedPatch for HEAD attached.
Comment #2
drummI don't understand what this is trying to accomplish. Please provide a more detailed description.
Comment #3
doq CreditAttribution: doq commentedfrom http://.php.net/imagejpeg :
The filename argument is optional, and if left off, the raw image stream will be output directly. To skip the filename argument in order to provide a quality argument just use an empty string ('').
Well, when I use an empty string for image_scale() etc. it doesn't print an image when I provide an empty string. Even when FALSE, NULL, 0 etc. PHP warnings are printed instead. Looks like php bug.
PHP Version 4.3.9 under fedora core 3.
gd
GD Support
enabled
GD Version
bundled (2.0.28 compatible)
FreeType Support
enabled
FreeType Linkage
with freetype
GIF Read Support
enabled
GIF Create Support
enabled
JPG Support
enabled
PNG Support
enabled
WBMP Support
enabled
XBM Support
enabled
Comment #4
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedmoving
Comment #5
Jose Reyero CreditAttribution: Jose Reyero commentedIf I got it right you are talking about extending the image api to handle also writing to standard output.
So, a pair of things:
- This is not a bug, but a feature request -the Drupal api function works just as intended but you want it to do something else
- For the patch, you need to fix also the function description and parameters
Comment #6
Robin Monks CreditAttribution: Robin Monks commentedAs a rule, feature requests will not go into stable releases. Because, of this, your feature request will be moved to the 7.x development branch. If you no longer wish to work on this issue yourself, please remove yourself from the assignee field and make your intentions known in a comment.
Thanks for reporting an issue on drupal.org, your input is what makes Drupal great!
Robin Monks
Drupal.org Testing/QA
Comment #8
Dean Reilly CreditAttribution: Dean Reilly commentedIt seems like it would be easy enough to add a function and some helper functions to the toolkits to make this possible if it's needed. I've attached a patch which should work with the gd toolkit.