[Swift-user] (no subject)

Hodgess, Erin HodgessE at uhd.edu
Wed Jun 3 14:11:23 CDT 2009


Hi Swift Users:

I'm trying to collect all of the files with the extension ".jpg", rotate them 180 degrees, and produce output of "hoot.xxx.jpeg".

here is my swift file and my error message.  I've tried lots of things with files and foreach, but I can't make any sense out of this.

Any suggestions, please?



[erin at tp-login2 swift1]$ cat rot2.swift
type file; 
 
app (file o) rotate(file s, int angle) { 
   convert "-rotate" angle @filename(s) @filename(o); 
} 

file  frame[] <filesys_mapper; pattern="*.jpg">;
file output[] <simple_mapper;suffix=".jpeg",prefix="hoot.">;
  
foreach ix in frame { 
  output[ix] = rotate(frame, 180); 
}  [erin at tp-login2 swift1]$
[erin at tp-login2 swift1]$ swift -tc.file tc.data rot2.swift
Could not start execution.
        Compile error in foreach statement at line 10: Compile error in procedure invocation at line 11: Wrong type for parameter number 0, expected file, got file[]


Thanks,
Erin

Erin M. Hodgess, PhD
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: hodgesse at uhd.edu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20090603/81c7317c/attachment.html>


More information about the Swift-user mailing list