|
|||
|
I have found an code about how to resize the image
then I try to resize but I have got a problem about quality loss. It was not distinctly. 600 px to 400 px Thank you very much for your kindness. //////////////////////////////////////////////////////////////////// function Resize(source_image,NewName,desired_width){ var image = Image.load(source_image) trace("original width is " +image.width) Zoomfactor = desired_width/image.width trace("Image is scaled with factor" +Zoomfactor) image.zoom(Zoomfactor) image.save(NewName+".jpg") } Resize("c://test.jpg","resized_test",600) |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|