Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

135
Views
Obteniendo una pantalla negra después de fusionar mis imágenes en PHP

imagen 1 imagen 2

Cuando estoy fusionando las imágenes, obtengo una imagen como esta: imagen fusionada

Aquí está mi código:

 $topFile = imagecreatefromjpeg($strTopFilePath); $bottomFile = imagecreatefromjpeg($strBottomFilePath); list($intTopFileWidth, $intTopFileHeight) = getimagesize($strTopFilePath); list($intBottomFileWidth, $intBottonFileHeight) = getimagesize($strBottomFilePath); // compute new width/height $intNewFileWidth = ($intTopFileWidth > $intBottomFileWidth) ? $intTopFileWidth : $intBottomFileWidth; $intNewFileHeight = $intTopFileHeight + $intBottonFileHeight; // create new image and merge $new = imagecreatetruecolor($intNewFileWidth, $intNewFileHeight); imagecopy($new, $topFile, 0, 0, 0, 0, $intTopFileWidth, $intTopFileHeight); imagecopy($new, $bottomFile, 0, $intTopFileHeight+1, 0, 0, $intBottomFileWidth, $intBottonFileHeight); imagejpeg($new, $strMergedPath);

Por favor ayuda. Gracias de antemano.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!