| Comments: |
![[User Picture]](http://p-userpic.livejournal.com/59513754/3891228) | From: unify Wed, 16-Mar-2005 3:58 AM (UTC)
| (Link)
|
Write a script to scale the high resolution original down to the gallery size, fiddle with the levels until they match, and apply those levels to the original.
The guys at Lumapix do some pretty impressive windoze software to do something similar. Ok, it's not FREE - but impressive still.
I can't find any other multi-layered image format that can be both written by ImageMagick and read by GIMP I have neither software to test, but I see that both claim to support Photoshop's PSD format, which does layers. Perhaps they do not sufficiently overlap in their support.
![[User Picture]](http://p-userpic.livejournal.com/5887295/515656) | From: jwz Wed, 16-Mar-2005 4:17 AM (UTC)
| (Link)
|
Yeah, I can read the doc too -- in reality, the overlap there is zero.
![[User Picture]](http://p-userpic.livejournal.com/44932674/887477) | From: weev Wed, 16-Mar-2005 4:39 AM (UTC)
| (Link)
|
GIMP's PSD support is horrid. It shouldn't even be listed as a feature.
From: geektalk Wed, 16-Mar-2005 5:11 AM (UTC)
perl/GIMP interface | (Link)
|
There is a GIMP-Perl interface; you don't have to use the Scheme deal. The perl interface is very OO-y. Maybe you've looked at it and decided it sucks, too? I used it a bit to create some web galleries and found it to be pretty straightforward.
Then you can write .xcf files or whatever gimp's native format is called.
![[User Picture]](http://p-userpic.livejournal.com/5887295/515656) | From: jwz Wed, 16-Mar-2005 5:22 AM (UTC)
Re: perl/GIMP interface | (Link)
|
I looked at it, but not very closely. The documentation seems spotty, and it kind of creeps me out in the same way that the Scheme binding does: the fact that I have to add my script to a menu before I can invoke it, instead of just connecting to a running Gimp process, seems pretty bass-ackwards. I come at it thinking "I want to write a program that makes use of Gimp's library of functions", and it wants me to come at it as "extending Gimp with a new interactive command." It's like if before writing "Hello World" I first had to build a preferences panel for it or something.
From: geektalk Wed, 16-Mar-2005 6:12 AM (UTC)
Re: perl/GIMP interface | (Link)
|
Wow, yeah, I just looked at 'perldoc Gimp::Fu' and it's pretty useless. You really can use it from the command line without adding it to a menu, though. I haven't touched this stuff since 1.2, but I'm definitely sure of that. There's documentation for the Scheme from within GIMP (Xtns->Procedure Browser in my GIMP 2.2 install) and I think I just had to extrapolate from that documentation how to use the perl interface. That documentation, however, is actually pretty good from what I remember. Oh yeah, I found a slightly old howto that explains how it all works. Sort of. Command line scripts in specific aren't mentioned until section 9, and even then, I don't really get it. I guess if you run it from the command line, then register() runs the function instead of adding it to a menu? That IS fucked up.
Considering you have a working version with imagemagick (which you seem to like) it's probably way more trouble than it's worth. Depends how bored you are at the moment, I guess.
![[User Picture]](http://p-userpic.livejournal.com/24190670/581997) | From: pleonastic Wed, 16-Mar-2005 5:54 AM (UTC)
Re: picturetile.pl | (Link)
|
nifty. this might just replace my tack-em-up-one-by-one method (i still print even though i no longer use much film).
TIFF files do store layer offsets; this must be a GIMP problem (i seem to recall reading recently something about this not working correctly), so there's hope on the horizon for solving your problem the way you want.
and just a note on workflow: i've taken to colour-correct and generally clean up the high-res originals before reducing size and publishing, since i ran into a similar problem a while ago, and no automatic treatment did the job. auto-levels suck IMO; i generally use curves instead of levels anyway (but auto-curves suck too). might as well bite into the sour apple of redoing the corrections on your high-res images; in the long run you might be happier with that.
![[User Picture]](http://p-userpic.livejournal.com/12298099/398317) | From: rzr_grl Wed, 16-Mar-2005 7:58 AM (UTC)
Re: picturetile.pl | (Link)
|
and just a note on workflow: i've taken to colour-correct and generally clean up the high-res originals before reducing size and publishing
I've been learning this the hard way too, lately. Each contest/internship/scholarship/etc. wants my portfolio images in a different resolution. Recently, I've had to go through and correct them all several times - once for a 10% difference in size!
I finally wised up, and my workflow is this: pull in all the jpgs; edit; color-correct, crop and clean up the selects and save them as tiff; resize and unsharp mask; and save them as small jpgs. This way the original file is intact, and I can get new, correct versions in any size with a simple resize + unsharp mask batch process.
My personal favorite is when I had to use a value of 'true' to get something to work correctly. I really enjoy it when true/false gets corrupted into stupidity.
![[User Picture]](http://p-userpic.livejournal.com/5887295/515656) | From: jwz Wed, 16-Mar-2005 12:59 PM (UTC)
Re: ImageMagick | (Link)
|
Very nice collage effect! How are you combining the images? (Thinking of adapting that for webcollage, obviously...)
![[User Picture]](http://p-userpic.livejournal.com/11923518/2288177) | From: endico Thu, 17-Mar-2005 11:28 PM (UTC)
Re: ImageMagick | (Link)
|
What a great collage. I just did something like this in photoshop, but only one of them. I'm not cool enough yet to have a script to generate them automatically.
I tried this on my personal colocation machine.. it's a dual 733mhz PIII with 512mb ram.. but I think I'm slowly losing my hard drive. hard writes to the drive causes the load to spike..
Of course, that never stops me from trying.. :) Yeah, spiked to load average 10 before I had to kill it..
Put it on a Xeon box that's largely idle did 62 pics (2.1 megapixel each) in ~33 seconds..
Looks neat. :)
![[User Picture]](http://p-userpic.livejournal.com/18036042/4019871) | From: zuvembi Wed, 16-Mar-2005 7:38 AM (UTC)
Laziness triumphs again | (Link)
|
In the past month I've been thinking about doing this exact thing. I hadn't gotten around to actually doing anything about it yet, so this is awesome. I will have to fiddle around with this this weekend (too busy painting this week to muck with it till then). Thanks. You might try Shutterfly for printing that out as a poster. They have a 20" x 30" print as one of their standard options, which might be large enough for you. They do good processing (at least I have been happy with my results from them). They also have a linux client for upload which works reasonably well. I'd rather use FTP or something, but at least when I was uploading my friends 700 megs of images I didn't have to point and drool all of them through a browser upload form. They also have a pretty fast turnaround on orders. I ordered some prints on a Monday night and got them delivered (to Seattle) by Thursday. Their processing center is in California, so it might even be faster for you.
![[User Picture]](http://p-userpic.livejournal.com/27556144/5416949) | From: yawns Wed, 16-Mar-2005 8:16 AM (UTC)
Equalize .. | (Link)
|
The perlmagick Equalize function might be what you want. See : http://openphoto.net/gallery/image.html?image_id=6847Then select 'Equalize' from the 'Apply Filter' menu for an example. What we need more than anything is a good, perlmagick image mosaic program. The few unix imagemosaic tools i've found tend to puke when dealing with a relatively low number of images, and you need a large pallette to output really quality mosaics.... $0.02, _Michael.
![[User Picture]](http://p-userpic.livejournal.com/25051609/4533375) | From: parkrrrr Wed, 16-Mar-2005 8:43 AM (UTC)
Re: Equalize .. | (Link)
|
I'm assuming you've tried Metapixel. I think you'll find that "you need a large palette to output really quality mosaics" is more of a property of the form than a limitation of the specific implementations, unless you cheat and tweak the hue on your subimages (as I've seen done on at least one "professional" mosaic; I think it was the poster for The Truman Show.)
![[User Picture]](http://p-userpic.livejournal.com/27556144/5416949) | From: yawns Wed, 16-Mar-2005 8:48 AM (UTC)
Re: Equalize .. | (Link)
|
I've tried it in the past and had some issues with it.
I dont think i've tried the latest release, maybe i need to give it another shot..
Thanks,
_M
![[User Picture]](http://p-userpic.livejournal.com/62210385/4292459) | From: hub_ Wed, 16-Mar-2005 8:27 AM (UTC)
| (Link)
|
That suck, ImageMagick does not write GIMP .xcf format. Otherwise I think you would be able to do it.
Maybe compositing in SVG ?
I hacked around with your script a bit to make it produce html, with absolutely positioned images. It works, except I then realized that I don't know how to turn that into an image. Printing to PDF would be logical, except I don't know how to set the paper size correctly.
I was thinking that you could use some javascript to drag the images around, and then print it like that. Of course, you can't save your positioning then, and you can't scale your view of the whole thing (at least not in Mozilla).
Oh well.
![[User Picture]](http://p-userpic.livejournal.com/16824320/2362150) | From: joel Wed, 16-Mar-2005 9:50 AM (UTC)
Re: Yeah | (Link)
|
I imagine it wouldn't be that hard to save the positioning. Could have javascript spit out the positions of each image into a textarea, and have another textarea into which you could paste it to place all the images correctly.
This isn't much help to you, but I wrote something similar that uses a really crappy physics-based model. It takes a few minutes, but you get something like this. The pipeline is totally idiosyncratic. Maybe I can abstract out the layout part if you're interested. Catch me this week as I'm unemployed. This was part of a semi-abandoned project to make images that represent the content of blog posts. Confession: I used some of your postings as sample texts.
![[User Picture]](http://p-userpic.livejournal.com/5887295/515656) | From: jwz Wed, 16-Mar-2005 1:01 PM (UTC)
| (Link)
|
I like that layout. I'd like to hear at least a description of the algorithm. I guess my technique is more "tetris-based" than "physics-based". (See, all those tetris hours I logged turned out to be useful after all.)
Here's an animation I made when I was debugging it.
My program has to deal with images of greatly varying sizes so it probably isn't much use for you. It works like this:
position all images on an infinite hyperbolic bowl, the
largest ones at the center, the small ones further out.
while (boxes are still moving significantly)
apply gravity vector to all boxes
(they slide down the sides of the hyperbolic bowl)
for each combination of boxes:
if any box is overlapping,
move them apart so they don't overlap
perform 1-d vector collision (m1v1 = m2v2) on the vectors
perpendicular to the edge that was most overlapping
accelerate every box (forces --> velocity)
move every box (velocity --> position)
apply friction to every box (velocity *= 0.005)
Physics are a lot simpler when the only objects are rectangles that can't rotate. Every collision is just 1-d.
![[User Picture]](http://p-userpic.livejournal.com/4116792/931472) | From: past_tense Wed, 16-Mar-2005 9:46 AM (UTC)
Vocabulary Lesson | (Link)
|
# That will make use of around 80 images from that directory, and will # take about five minutes on a 2GHz machine. It will also use a truly # gargantuan amount of RAM, and result in an output file of 4-5 MB.
"You know I've always liked that word gargantuan? I so rarely have an opportunity to use it in a sentence."
-Elle Driver, "Kill Bill"
![[User Picture]](http://p-userpic.livejournal.com/27354819/6467283) | From: goatbar Wed, 16-Mar-2005 11:26 AM (UTC)
Not so good at perl | (Link)
|
I'm not a perl guy. Can someone clue me into what I am doing wrong?
./picturetile.pl --size 1000x2000 --directory images output.jpg *** malloc[24703]: error for object 0x1: Pointer being reallocated was not allocated *** malloc[24703]: Deallocation of a pointer not malloced: 0x1; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug Image::Magick: unable to allocate string `1000x2000'.
Mac OSX 10.3.8 fink imagemagic 6.1.8-1 perlmagick-pm581 5.5.6-11 /usr/bin/perl --version
This is perl, v5.8.1-RC3 built for darwin-thread-multi-2level (with 1 registered patch, see perl -V for more detail)
Thanks!
![[User Picture]](http://p-userpic.livejournal.com/5887295/515656) | From: jwz Wed, 16-Mar-2005 12:57 PM (UTC)
Re: Not so good at perl | (Link)
|
Ugh. That sounds like a bug in the C side of the Perl ImageMagick library... Something's corrupting memory.
![[User Picture]](http://p-userpic.livejournal.com/8887140/1509940) | From: luserspaz Wed, 16-Mar-2005 5:46 PM (UTC)
Re: Not so good at perl | (Link)
|
FWIW, I managed to run it on Windows using ActiveState Perl, reading the images off of a network fileshare. I did have to comment out the duplicate inode check though, since all the inodes were coming out zero. Not sure if that's a Windows or an smb deficiency.
Cool post! Thanks for sharing your program :-)
Damn, hasn't someone made a perl script to translate perl to Script-Fu? :)
![[User Picture]](http://p-userpic.livejournal.com/5887295/515656) | From: jwz Wed, 16-Mar-2005 1:12 PM (UTC)
Re: idea... | (Link)
|
I've done that kind of thing before, and getting the registration right is a real bitch.
actually the more i think about this, the less necessary it is. you're putting all the images together at full resolution, not blowing a smaller image up to gargantuan size like the rasterbator. and halftoning the output that picturetile.pl does would be silly.
so rescind that comment o mine!
If you're going for a natural effect, some of the images should be at a slight angle, perhaps up to a few degrees. | |