Image Tags on 8.6.2

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

Image Tags on 8.6.2

Kevin Bice
I am stumped trying to get image tags to work on 8.6.2. I have finally gotten ImageMagick 6.6.5 installed and running, it is reporting that all the dependencies are available from the ldd ImageTag.so command, it works from the command line, but I get errors back from the image tags (invalid image filepath). The image is there, and it can be served up without the image tag. I have checked my SiteAdmin settings versus my working 8.6.1 setup, and I am stumped.
.................................
Kevin Bice
512-879-1653
http://fmpweb.com
.................................
Web Development and Design




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

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Image Tags on 8.6.2

Kevin Bice
I might add using 64-bit CentOS 6.4
.................................
Kevin Bice
512-879-1653
http://fmpweb.com
.................................
Web Development and Design



On Aug 27, 2013, at 11:18 AM, Kevin Bice wrote:

> I am stumped trying to get image tags to work on 8.6.2. I have finally gotten ImageMagick 6.6.5 installed and running, it is reporting that all the dependencies are available from the ldd ImageTag.so command, it works from the command line, but I get errors back from the image tags (invalid image filepath). The image is there, and it can be served up without the image tag. I have checked my SiteAdmin settings versus my working 8.6.1 setup, and I am stumped.
> .................................
> Kevin Bice
> 512-879-1653
> http://fmpweb.com
> .................................
> Web Development and Design
>
>
>
>
> #############################################################
>
> Attend the Lasso Developer Conference 2013!
> Sept 12-14, 2013 in Niagara Falls, Canada
> http://www.lassosoft.com/LDC-niagara-falls-2013
>
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


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

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Image Tags on 8.6.2

Ke Carlton-3
Try using:

image(file_read('/filepath.jpg'))


Instead of:

image('/filepath.jpg')


This was reported as a bug.

Ke

On 27 August 2013 17:23, Kevin Bice <[hidden email]> wrote:

> I might add using 64-bit CentOS 6.4
> .................................
> Kevin Bice
> 512-879-1653
> http://fmpweb.com
> .................................
> Web Development and Design
>
>
>
> On Aug 27, 2013, at 11:18 AM, Kevin Bice wrote:
>
> > I am stumped trying to get image tags to work on 8.6.2. I have finally
> gotten ImageMagick 6.6.5 installed and running, it is reporting that all
> the dependencies are available from the ldd ImageTag.so command, it works
> from the command line, but I get errors back from the image tags (invalid
> image filepath). The image is there, and it can be served up without the
> image tag. I have checked my SiteAdmin settings versus my working 8.6.1
> setup, and I am stumped.
> > .................................
> > Kevin Bice
> > 512-879-1653
> > http://fmpweb.com
> > .................................
> > Web Development and Design
> >
> >
> >
> >
> > #############################################################
> >
> > Attend the Lasso Developer Conference 2013!
> > Sept 12-14, 2013 in Niagara Falls, Canada
> > http://www.lassosoft.com/LDC-niagara-falls-2013
> >
> > #############################################################
> > This message is sent to you because you are subscribed to
> > the mailing list Lasso
> > [hidden email]
> > To unsubscribe, E-mail to: <[hidden email]>
> > Send administrative queries to  <[hidden email]>
>
>
> #############################################################
>
> Attend the Lasso Developer Conference 2013!
> Sept 12-14, 2013 in Niagara Falls, Canada
> http://www.lassosoft.com/LDC-niagara-falls-2013
>
> #############################################################
> This message is sent to you because you are subscribed to
>   the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>
>

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

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Image Tags on 8.6.2

Kevin Bice
OMG! Wondering why Lassosoft support did not pass this tidbit my way... that fixed it.

Now I am contemplating whether to blow my brains out or update years and years of code.   :-(
.................................
Kevin Bice
512-879-1653
http://fmpweb.com
.................................
Web Development and Design



On Aug 27, 2013, at 11:37 AM, Ke Carlton wrote:

> (file_read('/filepath.jpg'))


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

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Image Tags on 8.6.2

Kevin Bice
In reply to this post by Ke Carlton-3
OK. Now how do you get the width or height param after changing from image('/filepath') to image(file_read('/filepath'))?
.................................
Kevin Bice
512-879-1653
http://fmpweb.com
.................................
Web Development and Design



On Aug 27, 2013, at 11:37 AM, Ke Carlton wrote:

> Try using:
>
> image(file_read('/filepath.jpg'))
>
>
> Instead of:
>
> image('/filepath.jpg')
>
>
> This was reported as a bug.
>
> Ke
>
> On 27 August 2013 17:23, Kevin Bice <[hidden email]> wrote:
>
>> I might add using 64-bit CentOS 6.4
>> .................................
>> Kevin Bice
>> 512-879-1653
>> http://fmpweb.com
>> .................................
>> Web Development and Design
>>
>>
>>
>> On Aug 27, 2013, at 11:18 AM, Kevin Bice wrote:
>>
>>> I am stumped trying to get image tags to work on 8.6.2. I have finally
>> gotten ImageMagick 6.6.5 installed and running, it is reporting that all
>> the dependencies are available from the ldd ImageTag.so command, it works
>> from the command line, but I get errors back from the image tags (invalid
>> image filepath). The image is there, and it can be served up without the
>> image tag. I have checked my SiteAdmin settings versus my working 8.6.1
>> setup, and I am stumped.
>>> .................................
>>> Kevin Bice
>>> 512-879-1653
>>> http://fmpweb.com
>>> .................................
>>> Web Development and Design
>>>
>>>
>>>
>>>
>>> #############################################################
>>>
>>> Attend the Lasso Developer Conference 2013!
>>> Sept 12-14, 2013 in Niagara Falls, Canada
>>> http://www.lassosoft.com/LDC-niagara-falls-2013
>>>
>>> #############################################################
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso
>>> [hidden email]
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>>
>> #############################################################
>>
>> Attend the Lasso Developer Conference 2013!
>> Sept 12-14, 2013 in Niagara Falls, Canada
>> http://www.lassosoft.com/LDC-niagara-falls-2013
>>
>> #############################################################
>> This message is sent to you because you are subscribed to
>>  the mailing list Lasso
>> [hidden email]
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>>
>
> #############################################################
>
> Attend the Lasso Developer Conference 2013!
> Sept 12-14, 2013 in Niagara Falls, Canada
> http://www.lassosoft.com/LDC-niagara-falls-2013
>
> #############################################################
> This message is sent to you because you are subscribed to
>  the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


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

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Image Tags on 8.6.2

stevepiercy
In reply to this post by Ke Carlton-3
+1 for public bug tracker and to keep Kevin's brains inside his skull.

--steve


On 8/27/13 at 5:37 PM, [hidden email] (Ke Carlton) pronounced:

> Try using:
>
> image(file_read('/filepath.jpg'))
>
>
> Instead of:
>
> image('/filepath.jpg')
>
>
> This was reported as a bug.
>
> Ke
>
> On 27 August 2013 17:23, Kevin Bice <[hidden email]> wrote:
>
> > I might add using 64-bit CentOS 6.4
> > .................................
> > Kevin Bice
> > 512-879-1653
> > http://fmpweb.com
> > .................................
> > Web Development and Design
> >
> >
> >
> > On Aug 27, 2013, at 11:18 AM, Kevin Bice wrote:
> >
> > > I am stumped trying to get image tags to work on 8.6.2. I have finally
> > gotten ImageMagick 6.6.5 installed and running, it is reporting that all
> > the dependencies are available from the ldd ImageTag.so command, it works
> > from the command line, but I get errors back from the image tags (invalid
> > image filepath). The image is there, and it can be served up without the
> > image tag. I have checked my SiteAdmin settings versus my working 8.6.1
> > setup, and I am stumped.
> > > .................................
> > > Kevin Bice
> > > 512-879-1653
> > > http://fmpweb.com
> > > .................................
> > > Web Development and Design
> > >
> > >
> > >
> > >
> > > #############################################################
> > >
> > > Attend the Lasso Developer Conference 2013!
> > > Sept 12-14, 2013 in Niagara Falls, Canada
> > > http://www.lassosoft.com/LDC-niagara-falls-2013
> > >
> > > #############################################################
> > > This message is sent to you because you are subscribed to
> > > the mailing list Lasso
> > > [hidden email]
> > > To unsubscribe, E-mail to: <[hidden email]>
> > > Send administrative queries to  <[hidden email]>
> >
> >
> > #############################################################
> >
> > Attend the Lasso Developer Conference 2013!
> > Sept 12-14, 2013 in Niagara Falls, Canada
> > http://www.lassosoft.com/LDC-niagara-falls-2013
> >
> > #############################################################
> > This message is sent to you because you are subscribed to
> >   the mailing list Lasso
> > [hidden email]
> > To unsubscribe, E-mail to: <[hidden email]>
> > Send administrative queries to  <[hidden email]>
> >
>
> #############################################################
>
> Attend the Lasso Developer Conference 2013!
> Sept 12-14, 2013 in Niagara Falls, Canada
> http://www.lassosoft.com/LDC-niagara-falls-2013
>
> #############################################################
> This message is sent to you because you are subscribed to
>   the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

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


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

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Image Tags on 8.6.2

stevepiercy
In reply to this post by Kevin Bice
Same as before, I would guess.

    image(file_read('/filepath'))->height;

--steve


On 8/27/13 at 12:31 PM, [hidden email] (Kevin Bice) pronounced:

> OK. Now how do you get the width or height param after changing from
> image('/filepath') to image(file_read('/filepath'))?
> .................................
> Kevin Bice
> 512-879-1653
> http://fmpweb.com
> .................................
> Web Development and Design
>
>
>
> On Aug 27, 2013, at 11:37 AM, Ke Carlton wrote:
>
> > Try using:
> >
> > image(file_read('/filepath.jpg'))
> >
> >
> > Instead of:
> >
> > image('/filepath.jpg')
> >
> >
> > This was reported as a bug.
> >
> > Ke
> >
> > On 27 August 2013 17:23, Kevin Bice <[hidden email]> wrote:
> >
> >> I might add using 64-bit CentOS 6.4
> >> .................................
> >> Kevin Bice
> >> 512-879-1653
> >> http://fmpweb.com
> >> .................................
> >> Web Development and Design
> >>
> >>
> >>
> >> On Aug 27, 2013, at 11:18 AM, Kevin Bice wrote:
> >>
> >>> I am stumped trying to get image tags to work on 8.6.2. I have finally
> >> gotten ImageMagick 6.6.5 installed and running, it is reporting that all
> >> the dependencies are available from the ldd ImageTag.so command, it works
> >> from the command line, but I get errors back from the image tags (invalid
> >> image filepath). The image is there, and it can be served up without the
> >> image tag. I have checked my SiteAdmin settings versus my working 8.6.1
> >> setup, and I am stumped.
> >>> .................................
> >>> Kevin Bice
> >>> 512-879-1653
> >>> http://fmpweb.com
> >>> .................................
> >>> Web Development and Design
> >>>
> >>>
> >>>
> >>>
> >>> #############################################################
> >>>
> >>> Attend the Lasso Developer Conference 2013!
> >>> Sept 12-14, 2013 in Niagara Falls, Canada
> >>> http://www.lassosoft.com/LDC-niagara-falls-2013
> >>>
> >>> #############################################################
> >>> This message is sent to you because you are subscribed to
> >>> the mailing list Lasso
> >>> [hidden email]
> >>> To unsubscribe, E-mail to: <[hidden email]>
> >>> Send administrative queries to  <[hidden email]>
> >>
> >>
> >> #############################################################
> >>
> >> Attend the Lasso Developer Conference 2013!
> >> Sept 12-14, 2013 in Niagara Falls, Canada
> >> http://www.lassosoft.com/LDC-niagara-falls-2013
> >>
> >> #############################################################
> >> This message is sent to you because you are subscribed to
> >>  the mailing list Lasso
> >> [hidden email]
> >> To unsubscribe, E-mail to: <[hidden email]>
> >> Send administrative queries to  <[hidden email]>
> >>
> >
> > #############################################################
> >
> > Attend the Lasso Developer Conference 2013!
> > Sept 12-14, 2013 in Niagara Falls, Canada
> > http://www.lassosoft.com/LDC-niagara-falls-2013
> >
> > #############################################################
> > This message is sent to you because you are subscribed to
> >  the mailing list Lasso
> > [hidden email]
> > To unsubscribe, E-mail to: <[hidden email]>
> > Send administrative queries to  <[hidden email]>
>
>
> #############################################################
>
> Attend the Lasso Developer Conference 2013!
> Sept 12-14, 2013 in Niagara Falls, Canada
> http://www.lassosoft.com/LDC-niagara-falls-2013
>
> #############################################################
> This message is sent to you because you are subscribed to
>   the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

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


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

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Image Tags on 8.6.2

Ke Carlton-3
In reply to this post by Kevin Bice
If it's any consolation it only appears to kick in under certain situations.

Ke


On 27 August 2013 17:53, Kevin Bice <[hidden email]> wrote:

> OMG! Wondering why Lassosoft support did not pass this tidbit my way...
> that fixed it.
>
> Now I am contemplating whether to blow my brains out or update years and
> years of code.   :-(
> .................................
> Kevin Bice
> 512-879-1653
> http://fmpweb.com
> .................................
> Web Development and Design
>
>
>
> On Aug 27, 2013, at 11:37 AM, Ke Carlton wrote:
>
> > (file_read('/filepath.jpg'))
>
>
> #############################################################
>
> Attend the Lasso Developer Conference 2013!
> Sept 12-14, 2013 in Niagara Falls, Canada
> http://www.lassosoft.com/LDC-niagara-falls-2013
>
> #############################################################
> This message is sent to you because you are subscribed to
>   the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>
>

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

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Image Tags on 8.6.2

Kevin Bice
In reply to this post by stevepiercy
Brains are in the skull still, but... new discovery.

Trying CentOS 6.4 box with the default install of IM 6.5.4 8.6.2 with the old ImageTag.so allows me to use the image tag without using file_read. Turns out that it works on the other 6.4/8.6.2 box too!

This is the issus. I created a simple test file at the root level. Just about any image put at root level of the webserver will work correctly  - always. If the test file is using the image tag on images in another directory (/thisdir/images/pic) it fails on some images and works on some. In both case the image is being served up from the sub directory. The image tag thinks that it is an invalid image filepath. Same permissions on all these files. There is no discernible problem with the file, and they were all loaded up at the same time via SFTP. Even reloaded some of them.

The test file code is:
[var:'thisimage'=image('1hlngp31se8q.gif')][$thisimage->width]
<img style="display:block;text-align:center;margin:0;padding:0;border:0;" alt="" src="catalog_images/1hlngp31se8q.gif">


Any ideas?
.................................
Kevin Bice
512-879-1653
http://fmpweb.com
.................................
Web Development and Design



On Aug 27, 2013, at 2:10 PM, Steve Piercy - Web Site Builder wrote:

> +1 for public bug tracker and to keep Kevin's brains inside his skull.
>
> --steve
>
>
> On 8/27/13 at 5:37 PM, [hidden email] (Ke Carlton) pronounced:
>
>> Try using:
>>
>> image(file_read('/filepath.jpg'))
>>
>>
>> Instead of:
>>
>> image('/filepath.jpg')
>>
>>
>> This was reported as a bug.
>>
>> Ke
>>
>> On 27 August 2013 17:23, Kevin Bice <[hidden email]> wrote:
>>
>>> I might add using 64-bit CentOS 6.4
>>> .................................
>>> Kevin Bice
>>> 512-879-1653
>>> http://fmpweb.com
>>> .................................
>>> Web Development and Design
>>>
>>>
>>>
>>> On Aug 27, 2013, at 11:18 AM, Kevin Bice wrote:
>>>
>>>> I am stumped trying to get image tags to work on 8.6.2. I have finally
>>> gotten ImageMagick 6.6.5 installed and running, it is reporting that all
>>> the dependencies are available from the ldd ImageTag.so command, it works
>>> from the command line, but I get errors back from the image tags (invalid
>>> image filepath). The image is there, and it can be served up without the
>>> image tag. I have checked my SiteAdmin settings versus my working 8.6.1
>>> setup, and I am stumped.
>>>> .................................
>>>> Kevin Bice
>>>> 512-879-1653
>>>> http://fmpweb.com
>>>> .................................
>>>> Web Development and Design
>>>>
>>>>
>>>>
>>>>
>>>> #############################################################
>>>>
>>>> Attend the Lasso Developer Conference 2013!
>>>> Sept 12-14, 2013 in Niagara Falls, Canada
>>>> http://www.lassosoft.com/LDC-niagara-falls-2013
>>>>
>>>> #############################################################
>>>> This message is sent to you because you are subscribed to
>>>> the mailing list Lasso
>>>> [hidden email]
>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>> Send administrative queries to  <[hidden email]>
>>>
>>>
>>> #############################################################
>>>
>>> Attend the Lasso Developer Conference 2013!
>>> Sept 12-14, 2013 in Niagara Falls, Canada
>>> http://www.lassosoft.com/LDC-niagara-falls-2013
>>>
>>> #############################################################
>>> This message is sent to you because you are subscribed to
>>>  the mailing list Lasso
>>> [hidden email]
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>>
>>
>> #############################################################
>>
>> Attend the Lasso Developer Conference 2013!
>> Sept 12-14, 2013 in Niagara Falls, Canada
>> http://www.lassosoft.com/LDC-niagara-falls-2013
>>
>> #############################################################
>> This message is sent to you because you are subscribed to
>>  the mailing list Lasso
>> [hidden email]
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Steve Piercy               Web Site Builder               Soquel, CA
> <[hidden email]>                  <http://www.StevePiercy.com/>
>
>
> #############################################################
>
> Attend the Lasso Developer Conference 2013!
> Sept 12-14, 2013 in Niagara Falls, Canada
> http://www.lassosoft.com/LDC-niagara-falls-2013
>
> #############################################################
> This message is sent to you because you are subscribed to
>  the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


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

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Image Tags on 8.6.2

Jonathan Guthrie-3
It's possible IM is choking on the format, or on something to do with the file name or path?

On 2013-08-27, at 5:18 PM, Kevin Bice <[hidden email]> wrote:

> Brains are in the skull still, but... new discovery.
>
> Trying CentOS 6.4 box with the default install of IM 6.5.4 8.6.2 with the old ImageTag.so allows me to use the image tag without using file_read. Turns out that it works on the other 6.4/8.6.2 box too!
>
> This is the issus. I created a simple test file at the root level. Just about any image put at root level of the webserver will work correctly  - always. If the test file is using the image tag on images in another directory (/thisdir/images/pic) it fails on some images and works on some. In both case the image is being served up from the sub directory. The image tag thinks that it is an invalid image filepath. Same permissions on all these files. There is no discernible problem with the file, and they were all loaded up at the same time via SFTP. Even reloaded some of them.
>
> The test file code is:
> [var:'thisimage'=image('1hlngp31se8q.gif')][$thisimage->width]
> <img style="display:block;text-align:center;margin:0;padding:0;border:0;" alt="" src="catalog_images/1hlngp31se8q.gif">
>
>
> Any ideas?
> .................................
> Kevin Bice
> 512-879-1653
> http://fmpweb.com
> .................................
> Web Development and Design
>
>
>
> On Aug 27, 2013, at 2:10 PM, Steve Piercy - Web Site Builder wrote:
>
>> +1 for public bug tracker and to keep Kevin's brains inside his skull.
>>
>> --steve
>>
>>
>> On 8/27/13 at 5:37 PM, [hidden email] (Ke Carlton) pronounced:
>>
>>> Try using:
>>>
>>> image(file_read('/filepath.jpg'))
>>>
>>>
>>> Instead of:
>>>
>>> image('/filepath.jpg')
>>>
>>>
>>> This was reported as a bug.
>>>
>>> Ke
>>>
>>> On 27 August 2013 17:23, Kevin Bice <[hidden email]> wrote:
>>>
>>>> I might add using 64-bit CentOS 6.4
>>>> .................................
>>>> Kevin Bice
>>>> 512-879-1653
>>>> http://fmpweb.com
>>>> .................................
>>>> Web Development and Design
>>>>
>>>>
>>>>
>>>> On Aug 27, 2013, at 11:18 AM, Kevin Bice wrote:
>>>>
>>>>> I am stumped trying to get image tags to work on 8.6.2. I have finally
>>>> gotten ImageMagick 6.6.5 installed and running, it is reporting that all
>>>> the dependencies are available from the ldd ImageTag.so command, it works
>>>> from the command line, but I get errors back from the image tags (invalid
>>>> image filepath). The image is there, and it can be served up without the
>>>> image tag. I have checked my SiteAdmin settings versus my working 8.6.1
>>>> setup, and I am stumped.
>>>>> .................................
>>>>> Kevin Bice
>>>>> 512-879-1653
>>>>> http://fmpweb.com
>>>>> .................................
>>>>> Web Development and Design
>>>>>
>>>>>

Jono

----------------------------
Jonathan Guthrie
[hidden email]
@iamjono
LassoSoft Inc.
AIM Chatroom: lassochat
IRC/freenode #lasso


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

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Image Tags on 8.6.2

Kevin Bice
OK. Let me give you where I am at on this...

Box 2: CentOS 6.4 64-bit, Lasso 8.6.2, ImageMagick 6.5.4 (default install), and not so latest ImageTag.so(? - the file size is the only way I can judge this)

1) I can use the image tag without file_read and get the width or height param returned to me every time on every file if the Lasso file is at root level and so is the image file

2)  I can use the image tag without file_read and get the width or height param returned to me on some files when the Lasso file is at root level and the image is in a sub directory. When this is successful, I can move the test file and to a different sub directory or to the same sub directory the image file is in and it still works.

3) I can use the image tag without file_read throws a invalid image filepath error on some files when the Lasso file is at root level and the image is in a sub directory. I can move that image file to the root level and call it just fine and get the width param returned!

4) the image tag with file_read never throws an error on any setp of Lasso file and file location on any file, but it barfs when I try to get it to return the width or height.

Box 1 where my frustration began has CentOS 6.4 64-bit, Lasso 8.6.2, ImageMagick 6.6.5 and the new ImageTag.so

Not as much back and forth on it, but I can get image tag to work consistently at root level without file_read, but it barfs when using it on images in sub directory at times.

BTW, I exported/imported the server and site settings from my working CentOS box running 8.6.1 to make sure I was not goofing something up in Lasso settings.

I do not see how IM could be choking on the format based on where the file is located.

Looks like I am going to head back to CentOS 5.9 and 8.6.1. Maybe someday I will have the time to rewrite everything for 9. Maybe the documentation will be done by the time I get around to it... maybe not.

Has anyone gotten 8.6.2 to work on CentOS 6.4 (or 5.9 for that matter)? Does Lasso 9 work on CentOS 6.4? All functionality and tags of it work?
.................................
Kevin Bice
512-879-1653
http://fmpweb.com
.................................
Web Development and Design



On Aug 27, 2013, at 4:28 PM, Jonathan Guthrie wrote:

> It's possible IM is choking on the format, or on something to do with the file name or path?
>
> On 2013-08-27, at 5:18 PM, Kevin Bice <[hidden email]> wrote:
>
>> Brains are in the skull still, but... new discovery.
>>
>> Trying CentOS 6.4 box with the default install of IM 6.5.4 8.6.2 with the old ImageTag.so allows me to use the image tag without using file_read. Turns out that it works on the other 6.4/8.6.2 box too!
>>
>> This is the issus. I created a simple test file at the root level. Just about any image put at root level of the webserver will work correctly  - always. If the test file is using the image tag on images in another directory (/thisdir/images/pic) it fails on some images and works on some. In both case the image is being served up from the sub directory. The image tag thinks that it is an invalid image filepath. Same permissions on all these files. There is no discernible problem with the file, and they were all loaded up at the same time via SFTP. Even reloaded some of them.
>>
>> The test file code is:
>> [var:'thisimage'=image('1hlngp31se8q.gif')][$thisimage->width]
>> <img style="display:block;text-align:center;margin:0;padding:0;border:0;" alt="" src="catalog_images/1hlngp31se8q.gif">
>>
>>
>> Any ideas?
>> .................................
>> Kevin Bice
>> 512-879-1653
>> http://fmpweb.com
>> .................................
>> Web Development and Design
>>
>>
>>
>> On Aug 27, 2013, at 2:10 PM, Steve Piercy - Web Site Builder wrote:
>>
>>> +1 for public bug tracker and to keep Kevin's brains inside his skull.
>>>
>>> --steve
>>>
>>>
>>> On 8/27/13 at 5:37 PM, [hidden email] (Ke Carlton) pronounced:
>>>
>>>> Try using:
>>>>
>>>> image(file_read('/filepath.jpg'))
>>>>
>>>>
>>>> Instead of:
>>>>
>>>> image('/filepath.jpg')
>>>>
>>>>
>>>> This was reported as a bug.
>>>>
>>>> Ke
>>>>
>>>> On 27 August 2013 17:23, Kevin Bice <[hidden email]> wrote:
>>>>
>>>>> I might add using 64-bit CentOS 6.4
>>>>> .................................
>>>>> Kevin Bice
>>>>> 512-879-1653
>>>>> http://fmpweb.com
>>>>> .................................
>>>>> Web Development and Design
>>>>>
>>>>>
>>>>>
>>>>> On Aug 27, 2013, at 11:18 AM, Kevin Bice wrote:
>>>>>
>>>>>> I am stumped trying to get image tags to work on 8.6.2. I have finally
>>>>> gotten ImageMagick 6.6.5 installed and running, it is reporting that all
>>>>> the dependencies are available from the ldd ImageTag.so command, it works
>>>>> from the command line, but I get errors back from the image tags (invalid
>>>>> image filepath). The image is there, and it can be served up without the
>>>>> image tag. I have checked my SiteAdmin settings versus my working 8.6.1
>>>>> setup, and I am stumped.
>>>>>> .................................
>>>>>> Kevin Bice
>>>>>> 512-879-1653
>>>>>> http://fmpweb.com
>>>>>> .................................
>>>>>> Web Development and Design
>>>>>>
>>>>>>
>
> Jono
>
> ----------------------------
> Jonathan Guthrie
> [hidden email]
> @iamjono
> LassoSoft Inc.
> AIM Chatroom: lassochat
> IRC/freenode #lasso
>
>
> #############################################################
>
> Attend the Lasso Developer Conference 2013!
> Sept 12-14, 2013 in Niagara Falls, Canada
> http://www.lassosoft.com/LDC-niagara-falls-2013
>
> #############################################################
> This message is sent to you because you are subscribed to
>  the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


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

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Image Tags on 8.6.2

Kevin Bice
I guess that no one else has this problem based on the deafening silence, but I would like to know if anyone is using 8.6.2 on CentOS 6.4.
.................................
Kevin Bice
512-879-1653
http://fmpweb.com
.................................
Web Development and Design



On Aug 27, 2013, at 5:59 PM, Kevin Bice wrote:

> OK. Let me give you where I am at on this...
>
> Box 2: CentOS 6.4 64-bit, Lasso 8.6.2, ImageMagick 6.5.4 (default install), and not so latest ImageTag.so(? - the file size is the only way I can judge this)
>
> 1) I can use the image tag without file_read and get the width or height param returned to me every time on every file if the Lasso file is at root level and so is the image file
>
> 2)  I can use the image tag without file_read and get the width or height param returned to me on some files when the Lasso file is at root level and the image is in a sub directory. When this is successful, I can move the test file and to a different sub directory or to the same sub directory the image file is in and it still works.
>
> 3) I can use the image tag without file_read throws a invalid image filepath error on some files when the Lasso file is at root level and the image is in a sub directory. I can move that image file to the root level and call it just fine and get the width param returned!
>
> 4) the image tag with file_read never throws an error on any setp of Lasso file and file location on any file, but it barfs when I try to get it to return the width or height.
>
> Box 1 where my frustration began has CentOS 6.4 64-bit, Lasso 8.6.2, ImageMagick 6.6.5 and the new ImageTag.so
>
> Not as much back and forth on it, but I can get image tag to work consistently at root level without file_read, but it barfs when using it on images in sub directory at times.
>
> BTW, I exported/imported the server and site settings from my working CentOS box running 8.6.1 to make sure I was not goofing something up in Lasso settings.
>
> I do not see how IM could be choking on the format based on where the file is located.
>
> Looks like I am going to head back to CentOS 5.9 and 8.6.1. Maybe someday I will have the time to rewrite everything for 9. Maybe the documentation will be done by the time I get around to it... maybe not.
>
> Has anyone gotten 8.6.2 to work on CentOS 6.4 (or 5.9 for that matter)? Does Lasso 9 work on CentOS 6.4? All functionality and tags of it work?
> .................................
> Kevin Bice
> 512-879-1653
> http://fmpweb.com
> .................................
> Web Development and Design
>
>
>
> On Aug 27, 2013, at 4:28 PM, Jonathan Guthrie wrote:
>
>> It's possible IM is choking on the format, or on something to do with the file name or path?
>>
>> On 2013-08-27, at 5:18 PM, Kevin Bice <[hidden email]> wrote:
>>
>>> Brains are in the skull still, but... new discovery.
>>>
>>> Trying CentOS 6.4 box with the default install of IM 6.5.4 8.6.2 with the old ImageTag.so allows me to use the image tag without using file_read. Turns out that it works on the other 6.4/8.6.2 box too!
>>>
>>> This is the issus. I created a simple test file at the root level. Just about any image put at root level of the webserver will work correctly  - always. If the test file is using the image tag on images in another directory (/thisdir/images/pic) it fails on some images and works on some. In both case the image is being served up from the sub directory. The image tag thinks that it is an invalid image filepath. Same permissions on all these files. There is no discernible problem with the file, and they were all loaded up at the same time via SFTP. Even reloaded some of them.
>>>
>>> The test file code is:
>>> [var:'thisimage'=image('1hlngp31se8q.gif')][$thisimage->width]
>>> <img style="display:block;text-align:center;margin:0;padding:0;border:0;" alt="" src="catalog_images/1hlngp31se8q.gif">
>>>
>>>
>>> Any ideas?
>>> .................................
>>> Kevin Bice
>>> 512-879-1653
>>> http://fmpweb.com
>>> .................................
>>> Web Development and Design
>>>
>>>
>>>
>>> On Aug 27, 2013, at 2:10 PM, Steve Piercy - Web Site Builder wrote:
>>>
>>>> +1 for public bug tracker and to keep Kevin's brains inside his skull.
>>>>
>>>> --steve
>>>>
>>>>
>>>> On 8/27/13 at 5:37 PM, [hidden email] (Ke Carlton) pronounced:
>>>>
>>>>> Try using:
>>>>>
>>>>> image(file_read('/filepath.jpg'))
>>>>>
>>>>>
>>>>> Instead of:
>>>>>
>>>>> image('/filepath.jpg')
>>>>>
>>>>>
>>>>> This was reported as a bug.
>>>>>
>>>>> Ke
>>>>>
>>>>> On 27 August 2013 17:23, Kevin Bice <[hidden email]> wrote:
>>>>>
>>>>>> I might add using 64-bit CentOS 6.4
>>>>>> .................................
>>>>>> Kevin Bice
>>>>>> 512-879-1653
>>>>>> http://fmpweb.com
>>>>>> .................................
>>>>>> Web Development and Design
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Aug 27, 2013, at 11:18 AM, Kevin Bice wrote:
>>>>>>
>>>>>>> I am stumped trying to get image tags to work on 8.6.2. I have finally
>>>>>> gotten ImageMagick 6.6.5 installed and running, it is reporting that all
>>>>>> the dependencies are available from the ldd ImageTag.so command, it works
>>>>>> from the command line, but I get errors back from the image tags (invalid
>>>>>> image filepath). The image is there, and it can be served up without the
>>>>>> image tag. I have checked my SiteAdmin settings versus my working 8.6.1
>>>>>> setup, and I am stumped.
>>>>>>> .................................
>>>>>>> Kevin Bice
>>>>>>> 512-879-1653
>>>>>>> http://fmpweb.com
>>>>>>> .................................
>>>>>>> Web Development and Design
>>>>>>>
>>>>>>>
>>
>> Jono
>>
>> ----------------------------
>> Jonathan Guthrie
>> [hidden email]
>> @iamjono
>> LassoSoft Inc.
>> AIM Chatroom: lassochat
>> IRC/freenode #lasso
>>
>>
>> #############################################################
>>
>> Attend the Lasso Developer Conference 2013!
>> Sept 12-14, 2013 in Niagara Falls, Canada
>> http://www.lassosoft.com/LDC-niagara-falls-2013
>>
>> #############################################################
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso
>> [hidden email]
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
>
> #############################################################
>
> Attend the Lasso Developer Conference 2013!
> Sept 12-14, 2013 in Niagara Falls, Canada
> http://www.lassosoft.com/LDC-niagara-falls-2013
>
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


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

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Image Tags on 8.6.2

Eric Knibbe-2
In reply to this post by Kevin Bice
I should probably point out that the reported issue with the image tags requiring file_read for some operations to work only applies to Lasso 9. It's odd that adding file_read was necessary for them to work for you on 8.6, since in my tests, they would only work without file_read.

Using 64-bit CentOS 6.4 / Lasso 8.6.2, I got identical results with the stock ImageMagick 6.5.4-7 + original ImageTag.so (70165 bytes) and then the upgraded ImageMagick 6.6.5-10 + updated ImageTag.so (70090 bytes):

[
// works
image('/a.gif')->height;
image('/b.png')->height;
image('/tmp/a.gif')->height;
image('/tmp/b.png')->height;

// No tag, type or constant was defined under the name null->height
image(file_read('/a.gif'))->height;
image(file_read('/b.png'))->height;
image(file_read('/tmp/a.gif'))->height;
image(file_read('/tmp/b.png'))->height;
]

Also have a look at this thread: <http://www.lassosoft.com/lassotalk/msg/244389/Invalid+image+filepath>

If you have any particular image files that trigger the "Invalid image filepath" error, send them to [hidden email]. We have seen it where IM gets tripped up by PNGs containing certain metadata, e.g. OS X screen shots.
‐‐‐‐‐‐‐‐‐‐✂‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
Eric3
 

On 2013-08-27, at 6:59 PM, Kevin Bice wrote:

> OK. Let me give you where I am at on this...
>
> Box 2: CentOS 6.4 64-bit, Lasso 8.6.2, ImageMagick 6.5.4 (default install), and not so latest ImageTag.so(? - the file size is the only way I can judge this)
>
> 1) I can use the image tag without file_read and get the width or height param returned to me every time on every file if the Lasso file is at root level and so is the image file
>
> 2)  I can use the image tag without file_read and get the width or height param returned to me on some files when the Lasso file is at root level and the image is in a sub directory. When this is successful, I can move the test file and to a different sub directory or to the same sub directory the image file is in and it still works.
>
> 3) I can use the image tag without file_read throws a invalid image filepath error on some files when the Lasso file is at root level and the image is in a sub directory. I can move that image file to the root level and call it just fine and get the width param returned!
>
> 4) the image tag with file_read never throws an error on any setp of Lasso file and file location on any file, but it barfs when I try to get it to return the width or height.
>
> Box 1 where my frustration began has CentOS 6.4 64-bit, Lasso 8.6.2, ImageMagick 6.6.5 and the new ImageTag.so
>
> Not as much back and forth on it, but I can get image tag to work consistently at root level without file_read, but it barfs when using it on images in sub directory at times.
>
> BTW, I exported/imported the server and site settings from my working CentOS box running 8.6.1 to make sure I was not goofing something up in Lasso settings.
>
> I do not see how IM could be choking on the format based on where the file is located.
>
> Looks like I am going to head back to CentOS 5.9 and 8.6.1. Maybe someday I will have the time to rewrite everything for 9. Maybe the documentation will be done by the time I get around to it... maybe not.
>
> Has anyone gotten 8.6.2 to work on CentOS 6.4 (or 5.9 for that matter)? Does Lasso 9 work on CentOS 6.4? All functionality and tags of it work?
> .................................
> Kevin Bice
> 512-879-1653
> http://fmpweb.com
> .................................
> Web Development and Design
>
>
>
> On Aug 27, 2013, at 4:28 PM, Jonathan Guthrie wrote:
>
>> It's possible IM is choking on the format, or on something to do with the file name or path?
>>
>> On 2013-08-27, at 5:18 PM, Kevin Bice <[hidden email]> wrote:
>>
>>> Brains are in the skull still, but... new discovery.
>>>
>>> Trying CentOS 6.4 box with the default install of IM 6.5.4 8.6.2 with the old ImageTag.so allows me to use the image tag without using file_read. Turns out that it works on the other 6.4/8.6.2 box too!
>>>
>>> This is the issus. I created a simple test file at the root level. Just about any image put at root level of the webserver will work correctly  - always. If the test file is using the image tag on images in another directory (/thisdir/images/pic) it fails on some images and works on some. In both case the image is being served up from the sub directory. The image tag thinks that it is an invalid image filepath. Same permissions on all these files. There is no discernible problem with the file, and they were all loaded up at the same time via SFTP. Even reloaded some of them.
>>>
>>> The test file code is:
>>> [var:'thisimage'=image('1hlngp31se8q.gif')][$thisimage->width]
>>> <img style="display:block;text-align:center;margin:0;padding:0;border:0;" alt="" src="catalog_images/1hlngp31se8q.gif">
>>>
>>>
>>> Any ideas?
>>> .................................
>>> Kevin Bice
>>> 512-879-1653
>>> http://fmpweb.com
>>> .................................
>>> Web Development and Design
>>>
>>>
>>>
>>> On Aug 27, 2013, at 2:10 PM, Steve Piercy - Web Site Builder wrote:
>>>
>>>> +1 for public bug tracker and to keep Kevin's brains inside his skull.
>>>>
>>>> --steve
>>>>
>>>>
>>>> On 8/27/13 at 5:37 PM, [hidden email] (Ke Carlton) pronounced:
>>>>
>>>>> Try using:
>>>>>
>>>>> image(file_read('/filepath.jpg'))
>>>>>
>>>>>
>>>>> Instead of:
>>>>>
>>>>> image('/filepath.jpg')
>>>>>
>>>>>
>>>>> This was reported as a bug.
>>>>>
>>>>> Ke
>>>>>
>>>>> On 27 August 2013 17:23, Kevin Bice <[hidden email]> wrote:
>>>>>
>>>>>> I might add using 64-bit CentOS 6.4
>>>>>> .................................
>>>>>> Kevin Bice
>>>>>> 512-879-1653
>>>>>> http://fmpweb.com
>>>>>> .................................
>>>>>> Web Development and Design
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Aug 27, 2013, at 11:18 AM, Kevin Bice wrote:
>>>>>>
>>>>>>> I am stumped trying to get image tags to work on 8.6.2. I have finally
>>>>>> gotten ImageMagick 6.6.5 installed and running, it is reporting that all
>>>>>> the dependencies are available from the ldd ImageTag.so command, it works
>>>>>> from the command line, but I get errors back from the image tags (invalid
>>>>>> image filepath). The image is there, and it can be served up without the
>>>>>> image tag. I have checked my SiteAdmin settings versus my working 8.6.1
>>>>>> setup, and I am stumped.
>>>>>>> .................................
>>>>>>> Kevin Bice
>>>>>>> 512-879-1653
>>>>>>> http://fmpweb.com
>>>>>>> .................................
>>>>>>> Web Development and Design
>>>>>>>
>>>>>>>
>>
>> Jono
>>
>> ----------------------------
>> Jonathan Guthrie
>> [hidden email]
>> @iamjono
>> LassoSoft Inc.
>> AIM Chatroom: lassochat
>> IRC/freenode #lasso
>>
>>
>> #############################################################
>>
>> Attend the Lasso Developer Conference 2013!
>> Sept 12-14, 2013 in Niagara Falls, Canada
>> http://www.lassosoft.com/LDC-niagara-falls-2013
>>
>> #############################################################
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso
>> [hidden email]
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
>
> #############################################################
>
> Attend the Lasso Developer Conference 2013!
> Sept 12-14, 2013 in Niagara Falls, Canada
> http://www.lassosoft.com/LDC-niagara-falls-2013
>
> #############################################################
> This message is sent to you because you are subscribed to
>  the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


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

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Image Tags on 8.6.2

fletcher sandbeck-2
On Aug 28, 2013, at 1:26 PM, Eric Knibbe <[hidden email]> wrote:

> If you have any particular image files that trigger the "Invalid image filepath" error, send them to [hidden email]. We have seen it where IM gets tripped up by PNGs containing certain metadata, e.g. OS X screen shots.


I had some server instability problems traced particularly to PNG uploads.  Adding a ->Convert tag to my image resize routine cured them.  It doesn't seem like simply loading the image would crash, but attempting any manipulation on it like resizing and outputting it would.  As long as you don't mind converting all uploaded PNGs to JPGs.

var('image' = image(-binary=file_read($file)));
$image->format == 'png' ? $image->convert('jpg');
$image->scale(-width=1200)
file_write($path, $image->data);

FWIW,

[fletcher]


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

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Image Tags on 8.6.2

thisconnect
This post has NOT been accepted by the mailing list yet.
In reply to this post by Eric Knibbe-2
hi,

i have had this problem also when trying to upload and manipulate images on 8.6 on CentOS
and found 2 things:

1. check lasso siteadmin>setup>security>Files for file permissions on the ///tmp/ folder

2. before using the uploaded file, copy it out of the tmp folder and work with the copy

var:'tmpuld'=(file_uploads)->(get:(loop_count))->(find:'upload.name'); //temp uploaded file
var:'tmpstr'=$tmpuld->(substring: 13,12);
var:'tmppic'='///var/www/mysite/temp/upload'+$tmpstr+'.uld'; //somewhere away from the tmp folder
File_Copy: $tmpuld, $tmppic;
...
var:'theImage'=(Image: $tmppic);
...
File_Delete: $tmppic;

this worked for me
i think the file in /tmp is removed before imagemagick can access it...

hope this will help someone in the future

maarten