Skip to content

Instantly share code, notes, and snippets.

@khamidou
Created April 4, 2013 08:33
Show Gist options
  • Save khamidou/5308763 to your computer and use it in GitHub Desktop.
Save khamidou/5308763 to your computer and use it in GitHub Desktop.
// je fais une fonction pour calculer une correction sur des images
function composeImages($bottomImage, $topImage, $x, $y) {
$y_diff = $topImage->getImageHeight / 2; // ici j'oublie de mettre une parenthèse à mon appel de fonction
// ça passe parce que php met ça à 0
$corrected_y = $y - $y_diff; // du coup il n'y a pas de correction
// j'en déduis que ça marche et je m'autocongratule
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment