|
|
|
@ -297,9 +297,9 @@ function exportLayersToPNG(target_width, target_height, batch_images_to_register
|
|
|
|
|
var name_updated = name;
|
|
|
|
|
// COMAPRE THE DIMENSIONS OF THE ALIGNED IMAGE WITH THE TARGET
|
|
|
|
|
// IF SIGNIFICANT DIFFERENCE (30%), TAG IMAGE WITH '_CHECK.jpg'
|
|
|
|
|
if((aligned_image_width/target_width) < 0.7 || (aligned_image_height/target_height) < 0.7) {
|
|
|
|
|
name_updated = name.slice(0,-4) + '_CHECK.jpg';
|
|
|
|
|
}
|
|
|
|
|
// if((aligned_image_width/target_width) < 0.7 || (aligned_image_height/target_height) < 0.7) {
|
|
|
|
|
// name_updated = name.slice(0,-4) + '_CHECK.jpg';
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
saveLayer(el.layers.getByName(name), name_updated, oldPath, false);
|
|
|
|
|
}
|
|
|
|
|