• 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: replacing embedded images in Illustrator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: replacing embedded images in Illustrator


  • Subject: Re: replacing embedded images in Illustrator
  • From: Stan Cleveland <email@hidden>
  • Date: Fri, 25 Jul 2008 15:04:09 -0700
  • Thread-topic: replacing embedded images in Illustrator

On 7/25/08 2:45 PM, "Stan Cleveland" wrote:

> Below are four examples showing how to calculate the correct matrix values
> from the incorrect ones supplied for placed images. The algorithms were
> determined through experimentation, but have worked flawlessly (so far).

Oops!!! The code in my first message was flawed. The code below is correct.

Sorry,
Stan C.


-- image at 100%, x = 72, y = 720
-- embedded values are correct
set {a, b, c, d, tx, ty} to {1.0, 0.0, 0.0, 1.0, 72.0, 720.0}
-- placed values are wrong!
set {a, b, c, d, tx, ty} to {1.0, 0.0, 0.0, -1.0, -7813.0, 9307.0}
set dFixed to -d
set txFixed to 7885 * a + tx
set tyFixed to 8587 * d + ty

-- image at 50%, x = 72, y = 720
-- embedded values are correct
set {a, b, c, d, tx, ty} to {0.5, 0.0, 0.0, 0.5, 72.0, 720.0}
-- placed values are wrong!
set {a, b, c, d, tx, ty} to {0.5, 0.0, 0.0, -0.5, -3870.5, 5013.5}
set dFixed to -d
set txFixed to 7885 * a + tx
set tyFixed to 8587 * d + ty

-- image at 50%, x = 72, y = 720
-- embedded values are correct
set {a, b, c, d, tx, ty} to {0.25, 0.0, 0.0, 0.25, 72.0, 720.0}
-- placed values are wrong!
set {a, b, c, d, tx, ty} to {0.25, 0.0, 0.0, -0.25, -1899.25, 2866.75}
set dFixed to -d
set txFixed to 7885 * a + tx
set tyFixed to 8587 * d + ty

-- image at 74.1171598434%, x = 175.35693359375, y = 565.494140625
-- embedded values are correct
set {a, b, c, d, tx, ty} to {0.741171598434, 0.0, 0.0, 0.741171598434, ¬
    175.35693359375, 565.494140625}
-- placed values are wrong!
set {a, b, c, d, tx, ty} to {0.741171598434, 0.0, 0.0, -0.741171598434, ¬
    -5668.78125, 6929.9345703125}
set dFixed to -d
set txFixed to 7885 * a + tx
set tyFixed to 8587 * d + ty


 _______________________________________________
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

  • Follow-Ups:
    • Re: replacing embedded images in Illustrator
      • From: Stan Cleveland <email@hidden>
References: 
 >Re: replacing embedded images in Illustrator (From: Stan Cleveland <email@hidden>)

  • Prev by Date: Re: collect set of responses messages
  • Next by Date: Re: slash path to alias
  • Previous by thread: Re: replacing embedded images in Illustrator
  • Next by thread: Re: replacing embedded images in Illustrator
  • Index(es):
    • Date
    • Thread