Re: PDF to JPG
Re: PDF to JPG
- Subject: Re: PDF to JPG
- From: Shane Stanley <email@hidden>
- Date: Sat, 28 Feb 2015 10:36:31 +1100
On 28 Feb 2015, at 9:57 am, Stockly, Ed <email@hidden> wrote:
>
> Do you know if it's fixed in Yosemite?
I have no idea, but you could test it easily enough.
> By regularly, would every 20
> images be enough/not enough/just right?
Again, I don't really now. It depends on things like how big the images are, how much memory you regard as too much, and so on.
My real point is: why bother, when it's simple enough to do via sips -- which is what Image Events call anyway? And because you call sips via do shell script, even if it does the same image caching (which I suspect it does; I think it's a framework thing), it's effectively being flushed every time you use it.
do shell script "sips -s format jpeg -s formatOptions high " & quoted form of posixInput & " --out " & quoted form of posixOutput
>
>> * Last I looked it has several bugs once you start manipulating images.
>> So if you come back to the script and decide to change it -- say, to set
>> a maximum image size -- you might well find yourself forced to start over
>> again with something else. It seems to be another victim of AS neglect.
>
> OK, the end user hasn't seemed interested in that, but they could change
> their minds.
They might not be interested because they haven't even considered it. A few huge files might change their opinion quickly -- or not. But what do the scouts say?
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden