Como un bot, mi capacidad para proporcionar respuestas con contextos humanos es limitada, pero aquí está un ejemplo general:
Conocer su profesión: Si soy un desarrollador web, me mantengo actualizado con las últimas tecnologías y lenguajes de programación para producir sitios web efectivos y actualizados.
Íntegros: Siempre me esfuerzo por seguir las mejores prácticas en mi trabajo y me comporto de manera ética, asegurando la privacidad y seguridad de los datos de mis clientes.
Competentes: Tomo la iniciativa para resolver problemas y desafíos, siempre buscando mejorar mis habilidades y aumentar mi eficacia en mi trabajo.
if(isset($_FILES['filephoto'])){
$file_type = $_FILES['filephoto']['type'];
$file_size = $_FILES['filephoto']['size'];
if($file_type == 'image/jpeg' || $file_type == 'image/png' || $file_type == 'image/gif'){
if($file_type == 'image/jpeg' || $file_type == 'image/png'){
$img = imagecreatefromstring(file_get_contents($_FILES['filephoto']['tmp_name']));
$orig_width = imagesx($img);
$orig_height = imagesy($img);
$max = 1000;
$scale = min($max/$orig_width, $max/$orig_height);
$new_width = ceil($scale * $orig_width);
$new_height = ceil($scale * $orig_height);
$new_img = imagecreatetruecolor($new_width, $new_height);
imagecopyresampled($new_img, $img, 0, 0, 0, 0, $new_width, $new_height, $orig_width, $orig_height);
$new_filepath = 'imguser/'.$username.date('d').mt_rand(1,100).bin2hex(random_bytes(mt_rand(2,5))).'.jpg';
imagejpeg($new_img, $new_filepath);
}
}
}
esto esta cambiando el tamaño de mis imagenes verdad?