php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #21766 Make optional parameters for imagecopy
Submitted: 2003-01-20 03:14 UTC Modified: 2014-04-16 20:51 UTC
From: tuxedobob at mac dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.3.0 OS: All
Private report: No CVE-ID: None
 [2003-01-20 03:14 UTC] tuxedobob at mac dot com
Please make the source height and width optional in the imagecopy function. It could be handled as such:

If the images are the same size, copy the entire image. (Useful for applying an overlay with transparency.)

If the images are different sizes, copy from/to the image with the smaller dimension, for each dimension.

(Actually, I guess the last 6 parameters could be optional, with zeros being the default for the middle four.)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-20 03:33 UTC] tuxedobob at mac dot com
Please make the source height and width optional in the imagecopy function. It could be handled as such:

If the images are the same size, copy the entire image. (Useful for applying an overlay with transparency.)

If the images are different sizes, copy from/to the image with the smaller dimension, for each dimension.

(Actually, I guess the last 6 parameters could be optional, with zeros being the default for the middle four.)
 [2014-04-16 16:27 UTC] levim@php.net
-Status: Open +Status: Feedback -Package: Feature/Change Request +Package: GD related
 [2014-04-16 20:51 UTC] pajoye@php.net
-Status: Feedback +Status: Not a bug
 [2014-04-16 20:51 UTC] pajoye@php.net
You can specify source width and height and at which position you like to copy, see the imagecopy manual.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 21:01:31 2024 UTC