• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scaling image (with Akua?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scaling image (with Akua?)


  • Subject: Re: Scaling image (with Akua?)
  • From: Lists <email@hidden>
  • Date: Mon, 26 May 2003 09:06:15 -0700

Oh - sorry I didn't clarify - You can't specify the exact DPI you want.

1 returns 72 dpi, 2 returns 256 dpi, 3 returns 512 dpi 4 returns 768 dpi and
so on and so on.

I thought what you say is the way to do it - enter 150 dpi but it returns a
resolution of -27136. See the picture info for returned by my script:

set ThePicture to scale image ThePicture to theBounds at 150
-- scale the image to 150 dpi
return the picture info for ThePicture

returns:
{
picture size:11458,
picture bounds:{
0,
0,
0,
0
},
picture colors:32,
image colors:0,
picture resolution:{
-27136,
-27136
},
image grayscale:false,
image depth:32,
picture source box:{
0,
0,
250,
156
},
picture text count:0,
picture line count:0,
picture rect count:0,
picture rounded rect count:0,
picture oval count:0,
picture arc count:0,
picture polygon count:0,
picture region count:0,
picture bits count:0,
picture image count:0,
picture comment count:0,
picture compressed count:1,
picture compression:"jpeg",
picture compressed quality:50
}

In addition, there is nothing but a white image when opened in any graphics
application. Perhaps there is a conflict with my version of the OS,
Quicktime, Applescript, ???

I was hoping I could just specify the resolution as 150 dpi and everything
is great, but I can't. The resolution appears to be a function in that
whatever integer you supply, it adds 256.

0 = 72 is default
1 = 256
2 = 512
3 = 768
4 = 1024
5 = 1280

Etc etc

Is this the way it is supposed to work?


Thanks,
Steve
On 5/25/03 7:21 AM, "Brennan" <email@hidden> wrote:

> On Thu, 22 May 2003 11:11:27 -0700, Lists <email@hidden> wrote:
>
>> Hi List,
>>
>> Trying to do some image processing. Currently using Akua Draw
>> Sweets V1.29. Everything works well EXCEPT I have little
>> control over the final output resolution. I appear to be forced
>> to use 72 256 or 512 (increasing in considerable increments.
>> The specification I have been given requires 150 DPI output. Of
>> course, it seems to me a 150 DPI file at 1.666667" is the same
>> as a 256DPI file at 0.97777" but my client is insisting the
>> files arrive at 150 DPI. Am I wrong on my DPI versus size
>> assertion?
>>
>> I don't want to use graphic converter. Akua Draw Sweets
>> requires that resolution be set by a small integer, 0, 1 , 2
>> etc. Can I adjust resolution by playing with image depth?
>
> Sure. Just because it says 'small integer' doesn't mean it has to be THAT
> small. 72 or 150 is quite within range. (Maybe someone here knows what the
> upper limit of a small integer is. Any takers?)
>
>> The scale image line "at 1" returns the resolution at 256 DPI.
>
> Well, that's weird, but it wouldn't surprise me that something as
> off-the-wall as 1 DPI would cause unexpected results. Try 'at 150'.
>
> Brennan
> _______________________________________________
> applescript-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/applescript-users
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Scaling image (with Akua?) (From: Brennan <email@hidden>)

  • Prev by Date: Jon's Command Walk Folders from within a Folder action script
  • Next by Date: Re: Tex-Edit: select to EOF?
  • Previous by thread: Re: Scaling image (with Akua?)
  • Next by thread: for those interested in script objects
  • Index(es):
    • Date
    • Thread