image->scale question

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

image->scale question

Anibal Escobar
Hello everyone, I'm using Lasso 8 on MacOSX.  I have:

$MyImage->Scale(-Height=$height, -Thumbnail);

on a page and generally it works flawlessly.  However, in a few instances, the image that is produced has a different width than what would have been produced in Photoshop, and different  than the desired width.  For example, an image where the height is specified to be 1100 pixels is created with a width of 699 pixels, whereas doing the same operation on the same image in photoshop would have produced a width of 700 pixels.  Any suggestions on how to get around this?

Thanks,
Anibal Escobar
646 502 8821





#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: image->scale question

Marc Pinnell-3
Maybe a rounding issue?

marc


On Apr 2, 2015, at 11:42 AM, Anibal Escobar <[hidden email]> wrote:

> Hello everyone, I'm using Lasso 8 on MacOSX.  I have:
>
> $MyImage->Scale(-Height=$height, -Thumbnail);
>
> on a page and generally it works flawlessly.  However, in a few instances, the image that is produced has a different width than what would have been produced in Photoshop, and different  than the desired width.  For example, an image where the height is specified to be 1100 pixels is created with a width of 699 pixels, whereas doing the same operation on the same image in photoshop would have produced a width of 700 pixels.  Any suggestions on how to get around this?
>
> Thanks,
> Anibal Escobar
> 646 502 8821
>
>
>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: image->scale question

Anibal Escobar
Since only the height is specified in the image tag, the rounding is not something that is done explicitly by me in the code.

Thanks,
Anibal Escobar
646 502 8821




On Apr 2, 2015, at 3:03 PM, Marc Pinnell wrote:

> Maybe a rounding issue?
>
> marc
>
>
> On Apr 2, 2015, at 11:42 AM, Anibal Escobar <[hidden email]> wrote:
>
>> Hello everyone, I'm using Lasso 8 on MacOSX.  I have:
>>
>> $MyImage->Scale(-Height=$height, -Thumbnail);
>>
>> on a page and generally it works flawlessly.  However, in a few instances, the image that is produced has a different width than what would have been produced in Photoshop, and different  than the desired width.  For example, an image where the height is specified to be 1100 pixels is created with a width of 699 pixels, whereas doing the same operation on the same image in photoshop would have produced a width of 700 pixels.  Any suggestions on how to get around this?
>>
>> Thanks,
>> Anibal Escobar
>> 646 502 8821
>>
>>
>>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> Marc Pinnell
> 1027 Design
> PO Box 990872
> Redding, CA 96099-0872
> 530.941.4706
> fax: 866.232.5300
> www.1027Design.com
>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: image->scale question

stevepiercy
In reply to this post by Anibal Escobar
Place the image on the desired canvas size with a background
that is either transparent or whatever you like.

The Lasso image tags use ImageMagick under the hood.  When the
Lasso image tags don't yield desired results, I drop into
os_process or sys_process and use IM from the command line.

--steve


On 4/2/15 at 2:42 PM, [hidden email] (Anibal Escobar) pronounced:

>Hello everyone, I'm using Lasso 8 on MacOSX.  I have:
>
>$MyImage->Scale(-Height=$height, -Thumbnail);
>
>on a page and generally it works flawlessly.  However, in a few
>instances, the image that is produced has a different width
>than what would have been produced in Photoshop, and different  
>than the desired width.  For example, an image where the height
>is specified to be 1100 pixels is created with a width of 699
>pixels, whereas doing the same operation on the same image in
>photoshop would have produced a width of 700 pixels.  Any
>suggestions on how to get around this?
>
>Thanks,
>Anibal Escobar
>646 502 8821
>
>
>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Soquel, CA
<[hidden email]>               <http://www.StevePiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>