Lasso 9.3 and image tag

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

Lasso 9.3 and image tag

Anibal Escobar
Hi everyone, I’m trying to port my sites to Lasso 9.3 and can’t get the image tag to work.

local('img'=image('/interworx_logo.gif’))

gives a spitfire error:

Error Code: -9948
Error Message: Definition Not Found: image(string)

ImageMagick.so is checked in Lasso Lux.  Any thoughts as to what I might be missing?

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: Lasso 9.3 and image tag

Jolle Carlestam-2
Not at my computer for the moment but if I recall, image requires a file, not a string. Try local('img'=image(file('/interworx_logo.gif')))

HDB
Jolle

Sent from a thin, flat, touchy device from an undetermined place in space.

> 13 sep 2015 kl. 22:45 skrev Anibal Escobar <[hidden email]>:
>
> Hi everyone, I’m trying to port my sites to Lasso 9.3 and can’t get the image tag to work.
>
> local('img'=image('/interworx_logo.gif’))
>
> gives a spitfire error:
>
> Error Code: -9948
> Error Message: Definition Not Found: image(string)
>
> ImageMagick.so is checked in Lasso Lux.  Any thoughts as to what I might be missing?
>
> 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]>

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

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: Lasso 9.3 and image tag

Anibal Escobar
Hi, just tried that.  Got an error still:

Error Code: -9948
Error Message: Definition Not Found: image(file)

Thanks,
Anibal Escobar
646 502 8821





> On Sep 13, 2015, at 5:32 PM, Jolle Carlestam <[hidden email]> wrote:
>
> Not at my computer for the moment but if I recall, image requires a file, not a string. Try local('img'=image(file('/interworx_logo.gif')))
>
> HDB
> Jolle
>
> Sent from a thin, flat, touchy device from an undetermined place in space.
>
>> 13 sep 2015 kl. 22:45 skrev Anibal Escobar <[hidden email]>:
>>
>> Hi everyone, I’m trying to port my sites to Lasso 9.3 and can’t get the image tag to work.
>>
>> local('img'=image('/interworx_logo.gif’))
>>
>> gives a spitfire error:
>>
>> Error Code: -9948
>> Error Message: Definition Not Found: image(string)
>>
>> ImageMagick.so is checked in Lasso Lux.  Any thoughts as to what I might be missing?
>>
>> 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]>
>
> #############################################################
>
> 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: Lasso 9.3 and image tag

Jolle Carlestam-2

NOW, I’m at the computer and can lookup the syntax I’m using.

image(file_read('/interworx_logo.gif’))

HDB
Jolle

Good Morning everybody, BTW

> 14 sep 2015 kl. 00:00 skrev Anibal Escobar <[hidden email]>:
>
> Hi, just tried that.  Got an error still:
>
> Error Code: -9948
> Error Message: Definition Not Found: image(file)
>
>
>> On Sep 13, 2015, at 5:32 PM, Jolle Carlestam <[hidden email]> wrote:
>>
>> Not at my computer for the moment but if I recall, image requires a file, not a string. Try local('img'=image(file('/interworx_logo.gif')))
>>
>> HDB
>> Jolle
>>
>> Sent from a thin, flat, touchy device from an undetermined place in space.
>>
>>> 13 sep 2015 kl. 22:45 skrev Anibal Escobar <[hidden email]>:
>>>
>>> Hi everyone, I’m trying to port my sites to Lasso 9.3 and can’t get the image tag to work.
>>>
>>> local('img'=image('/interworx_logo.gif’))
>>>
>>> gives a spitfire error:
>>>
>>> Error Code: -9948
>>> Error Message: Definition Not Found: image(string)
>>>
>>> ImageMagick.so is checked in Lasso Lux.  Any thoughts as to what I might be missing?
>>>
>>> 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]>
>>
>> #############################################################
>>
>> 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]>


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

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: Lasso 9.3 and image tag

Jolle Carlestam-2
And for the record, Lassosoft. Anibal is correct in being confused.
Information here is not complying with reality.
http://lassoguide.com/operations/images-media.html?highlight=image#image

"image(filePath::string, -info=?)
image(bytes::bytes, -info=?)
Creates an image object. Requires either the path to an image file or a bytes object with an image’s binary data to initialize the object.”

An error that I recall I reported way back when Lasso 9 was still beta.

HDB
Jolle

> 14 sep 2015 kl. 07:57 skrev Jolle Carlestam <[hidden email]>:
>
>
> NOW, I’m at the computer and can lookup the syntax I’m using.
>
> image(file_read('/interworx_logo.gif’))
>
> HDB
> Jolle
>
> Good Morning everybody, BTW
>
>> 14 sep 2015 kl. 00:00 skrev Anibal Escobar <[hidden email]>:
>>
>> Hi, just tried that.  Got an error still:
>>
>> Error Code: -9948
>> Error Message: Definition Not Found: image(file)
>>
>>
>>> On Sep 13, 2015, at 5:32 PM, Jolle Carlestam <[hidden email]> wrote:
>>>
>>> Not at my computer for the moment but if I recall, image requires a file, not a string. Try local('img'=image(file('/interworx_logo.gif')))
>>>
>>> HDB
>>> Jolle
>>>
>>> Sent from a thin, flat, touchy device from an undetermined place in space.
>>>
>>>> 13 sep 2015 kl. 22:45 skrev Anibal Escobar <[hidden email]>:
>>>>
>>>> Hi everyone, I’m trying to port my sites to Lasso 9.3 and can’t get the image tag to work.
>>>>
>>>> local('img'=image('/interworx_logo.gif’))
>>>>
>>>> gives a spitfire error:
>>>>
>>>> Error Code: -9948
>>>> Error Message: Definition Not Found: image(string)
>>>>
>>>> ImageMagick.so is checked in Lasso Lux.  Any thoughts as to what I might be missing?
>>>>
>>>> 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]>
>>>
>>> #############################################################
>>>
>>> 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]>
>
>
> #############################################################
>
> 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: Lasso 9.3 and image tag

Jolle Carlestam-2
Final input from me.


Anibal, Lassosoft, whomever. You can fix it by defining your own addition to the image type:

define image(path::string) => image(file_read(#path))
Put it wherever you have your own definitions placed.

Example usage:
local(myimage = image('/apple-touch-icon-152x152.png'))

#myimage -> scale(-width = 30)

file_serve(#myimage -> data, -file = 'test.png', -type = 'application/image', -disposition = 'inline’)

HDB
Jolle



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

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: Lasso 9.3 and image tag

Ke Carlton-3
These are some of the strengths of Lasso 9:

If it doesn't work; you can fix it.

If you don't like it; you can change it (cautiously)

Obviously in a perfect world it would be great if everything worked
perfectly as you'd expect from the offset — but in the mean time you can
just fix it until changed (if ever).

And of course there's something you just shouldn't touch / change...

Ke



On Mon, Sep 14, 2015 at 6:37 PM Jolle Carlestam <[hidden email]> wrote:

> Final input from me.
>
>
> Anibal, Lassosoft, whomever. You can fix it by defining your own addition
> to the image type:
>
> define image(path::string) => image(file_read(#path))
> Put it wherever you have your own definitions placed.
>
> Example usage:
> local(myimage = image('/apple-touch-icon-152x152.png'))
>
> #myimage -> scale(-width = 30)
>
> file_serve(#myimage -> data, -file = 'test.png', -type =
> 'application/image', -disposition = 'inline’)
>
> HDB
> Jolle
>
>
>
> #############################################################
>
> 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: Lasso 9.3 and image tag

Jolle Carlestam-2
14 sep 2015 kl. 08:42 skrev Ke Carlton <[hidden email]>:
>
> If it doesn't work; you can fix it.

I have my own place for that, bugfixes.lasso, where I keep definitions that are either fixing pure bugs or tweaking existing behavior to my liking.
I am supposed to check it each time Lasso 9 is bumped up a version but it happens that I forget that.

In any case. I am totally with Ke. Lasso 9 is a very strong and compelling product. For this reason, and many many other.

HDB
Jolle

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

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]>