apust писал(а):
takara писал(а):
Делаю Action так , что бы исходник для Алами получился 25м. Что нужно выставить в таблице (ctrl alt +I), что бы нарисовалось 25 мег ? Картинки все по ширине и высоте разные.
http://www.acclaimimages.com/resources/ ... mages.htmlТут вот что-то умное пишут.
Но если нужно из любой картинки, то видимо нужно скрипт писать.
ну да - там пишут что в выпадающем нужно проценты ставить и увеличивать.
нашёл это
Darrel,
There is a simple way to automate this. Copy the text below in notepad and save it as file AlamyResize.js in C:\Program Files\Adobe\Photoshop CS\Presets\Scripts . When you run PS the next time and open an image this script will be awailable in File-Scripts tab. Run it, and the script will check the image size, and if the image is below 50MB it will be rezized to exactly 50MB regardless of the aspect ratio.
You can make an action which will run this script in a batch mode.
Hope this helps
Alex
app.preferences.rulerUnits = Units.PIXELS;
var desiredsize = 50*1024*1024/3;
var height = app.activeDocument.height;
var width = app.activeDocument.width;
var size = height*width;
if(height*width < desiredsize) {
height *= Math.sqrt(desiredsize/size);
width *= Math.sqrt(desiredsize/size);
app.activeDocument.resizeImage(width,height,300,ResampleMethod.BICUBIC);
}
вместо 50 поставил 24
но у меня картинка 1200 дпи - она делает 300. Может поменять 300 на 1200 (так как думается пользовать это для Шатера) или это не критично для качества? Так всё работает отлично.