[haiku] Re: Getting picture out of a resource/people file using the terminal

  • From: "Humdinger" <humdingerb@xxxxxxxxxxxxxx>
  • To: haiku@xxxxxxxxxxxxx
  • Date: Sun, 02 Jun 2013 17:22:39 +0200

Hi lelldorin@xxxxxx!

On Sat, 01 Jun 2013 09:30:17 +0000 lelldorin@xxxxxx wrote:
> all the years i use attribute files for my programs i ever ask by 
> myself how to get 
> pictures from a resource/people file?
> 
> I have tried cattattr bit i does not can get (data) informations. i 
> try listattr and cat 
> himself. Do you have an idear?

If I see this correctly, the people files don't store the image as an 
attribute, but as the file itself. Which means that you can simply do a 
"settype -t image/jpeg {filename}", assuming it's a jpeg.

Regards,
Humdinger

--=-=--=-=--=-=--=-=--=-=--=-=--=-=--=-=--=-=--=-
      Deutsche Haiku News  -  Haiku Gazette
        http://haiku-gazette.blogspot.com

Other related posts: