Hi, At a glance I would expect this means the temporary directory was not created (but I'm not a Mac user). That could happen if either /Users/juergen/j602-user/temp/ didn't exist or have write privileges. After the failed create_dir < im_path
try im_path=:'/temp/' where the folder "/temp/" exists. If that doesn't work, I would suspect a "/" vs "\" problem lurking somewhere. Best, Cliff Brian Schott wrote: > Juergen, > > My results match yours exactly until step 4 of the Lab, but then my > older PPC Mac running OSX 10.4.11 received a result of "1" without the > quotes, where yours received the following. > >> create_dir < im_path >> ┌─────────────────────────────────────┐ >> │/Users/juergen/j602-user/temp/image3/│ >> └─────────────────────────────────────┘ > > On Thu, Jan 1, 2009 at 12:40 PM, Juergen Dabel <[email protected]> wrote: >> Sorry, >> I did enclose a pdf file with the snapshot of the error message. >> Here my complete "error" message: >> Problem with Image 3 >> ───────────────────────────────────────────────────────────── >> Lab: Image Addon 3 >> Author: Zach Reiter and Cliff Reiter >> Cliff: Math Dept, Lafayette College >> [email protected] >> June 2003 >> modified for J6.01, Sept 2006 >> To advance the lab, select menu Studio|Advance or the >> corresponding shortcut. >> >> ── (1 of 30) Image3 addon ─────────────────────────────────── >> The image3 addon is designed to allow reading and writing 24 >> bit image files to and from J. This allows format conversion >> under program control as well as convenient file i/o for >> image processing with J. The supported types are BMP, JPEG, >> PNG, TGA and PNM. There is limited support for 8-bit images >> and simple *.MOV animations. The documentation, found in the >> help subdirectory of the addons directory, gives a further >> overview of the addon facilities. Since these facilities by >> their nature overwrite files, we offer standard but essential >> advice in such circumstances: users should work on duplicate >> copies of their files. >> ) >> ── (2 of 30) Note re. html lab ────────────────────────────── >> The image i/o utilities form the basis for html image gallery >> building and the other facilities included with the addon. >> While we briefly consider html gallery building, a more >> detailed lab, dealing just with html galleries, may be >> studied. >> ) >> ── (3 of 30) Loading the addon image script ───────────────── >> The addon script directly defines the BMP, TGA and PNM >> utilities; however, the JPEG, PNG and MOV utilities call >> compiled libraries (included) which are assumed to be in the >> image3 addon directory. The MOV utilities require that >> movie3.ijs has been loaded. If the script failed to load, you >> should check that the file image3.dll (windows) is in the >> addon directory. >> ) >> dir_sep=: PATHSEP_j_ >> addon_path=: jpath '~addons/media/image3/' >> require addon_path,'image3.ijs' >> ── (4 of 30) Creating a temp folder ───────────────────────── >> Now we will define a temporary directory to place the image >> files that we will create during this lab. You may delete >> this directory when you are finished with the lab. However, >> the image3 html lab assumes that the images created by this >> lab are in place. Hence, you may want to leave the temporary >> directory in place until you have done the html lab. >> ) >> create_dir=:1!:5 :: ] >> ]im_path=: jpath '~temp',dir_sep,'image3',dir_sep NB. directory to be >> created >> /Users/juergen/j602-user/temp/image3/ >> create_dir < im_path >> ┌─────────────────────────────────────┐ >> │/Users/juergen/j602-user/temp/image3/│ >> └─────────────────────────────────────┘ >> ── (5 of 30) Notice provided images ───────────────────────── >> Now we can observe that one jpeg image, atkiln.jpg, was >> included with the addon and one png image was also included. >> We assign "im1" and "im2" as names for those files. >> ) >> fdir addon_path,'*.jpg' >> ┌──────────┬──────────────────┬──────┬───┬──────┬──────────┐ >> │atkiln.jpg│2007 1 15 10 26 33│133288│rw-│------│-rw-r--r--│ >> └──────────┴──────────────────┴──────┴───┴──────┴──────────┘ >> im1=:addon_path,'atkiln.jpg' >> fdir addon_path,'*.png' >> ┌─────────────┬──────────────────┬─────┬───┬──────┬──────────┐ >> │hy_fly_di.png│2007 1 15 10 26 33│34929│rw-│------│-rw-r--r--│ >> └─────────────┴──────────────────┴─────┴───┴──────┴──────────┘ >> im2=:addon_path,'hy_fly_di.png' >> ── (6 of 30) Reading an image ─────────────────────────────── >> We can read the image "im1" into J. It is a three dimensional >> integer array giving RGB triples. Its shape is height by >> width by 3. >> ) >> B=:read_image im1 >> >> >> >> -------------------------------------------------------------------------- >> I get this Error message: >> error in: jijs_labadvance_button >> domain error:cd >> a=. 'jpeg_get_info + i*c*i*i*i*i'zjm(<y),(,&.>;/4#0) >> >> --- >> My System is Mac OS X 10.5.6 and J 602 with Library 6.02.046 >> Maybe it is a problem with copying the files? >> --- >> Thank you >> Juergen Dabel >> >> Am 01.01.2009 um 17:29 schrieb Brian Schott: >> >> Your error did not show in your message. >> >> -- >> (B=) <-----my sig >> Brian Schott >> >> Juergen Dabel >> Fruehlingstrasse 11 A >> 86529 Schrobenhausen >> Germany >> [email protected] >> >> >> > > > -- Clifford A. Reiter Mathematics Department, Lafayette College Easton, PA 18042 USA, 610-330-5277 http://www.lafayette.edu/~reiterc ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
