Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

138
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda