1
Используя imagemagick с nodejs, я хотел бы переименовать свой вывод с помощью x-y по столбцам и строкам.imagemagick tile image with Cordinate
Я могу сделать на терминале, но как я могу реализовать это на моем скрипте.
Terminal Пример:
convert img.jpg -crop 512x512 -set filename:tile ./tiles/pano-%[fx:page.x/256]-%[fx:page.y/256] %[filename:tile]-0.jpg
var args = [
query.url+".jpg", // image
"-crop", // will crop the tiles
"512x512", // size of tile will be created
query.url+"/output.jpg" // Image output name.
];
im.convert(args, function(err) {
if(err) { throw err; }
res.end("Image crop complete");
});
}
Или вы можете предложить мне anyother путь к плитке мой образ.