/tech/ - Tech 2.0
Max message length: 4096
(used to delete files and postings)
Remember to follow the rules
out_path="./out" if [[ -d $out_path ]]; then mkdir out fi for i in {1..3}; do img_in="paso-${i}.png"; img_out="${out_path}/paso-${i}.jpg"; convert -resize 30% -quality 50 $img_in $img_out; done
[System.Drawing.Imaging.Image] $image = [System.Drawing.Image]::FromFile("entrada.jpg") $newWidth = [int]$image.Width * 0.5 $newSize = New-Object System.Drawing.Size $newWidth, $image.Height $newImage = new-object System.Drawing.Bitmap $newSize $graphics = [System.Drawing.Graphics]::FromImage($newImage) $graphics.DrawImage($image, 0, 0) $newImage.Save("salida.png", [System.Drawing.Imaging.ImageFormat]::Png)
convert -resize 30% -quality 50 $img_in $img_out;