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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tuxedobob at mac dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 21:01:27 2025 UTC