Allowing a User to Convert an Image Type

mortehl

Joined: 2004-10-20
Posts: 2
Posted: Mon, 2004-10-25 15:39

I would worship the grounds you guys tread upon if you could add an automatic option to say let a file like picture.jpg be converted to a new format like picture.tif so they can download that instead.

You don't even know how important this is for me right now. If it is possible already, PLEASE send me instructions on how to implement it.

Thank you

Aaron

(PS: Using ImageMagick suite)

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2004-10-25 16:36

Here's the right way:
1) update ImageMagick module with operations like convert-to-image/tiff for each format you want (it only has convert-to-image/jpeg right now).
2) make a new module that adds item links like "Download as TIFF"; implementation is immediate view that uses toolkit to convert image, send data, delete temp file.

If you are interested in writing #2 we can give you more detail, and I can help out with #1.

 
mortehl

Joined: 2004-10-20
Posts: 2
Posted: Mon, 2004-10-25 21:00

Here's a basic version of a module to allow any image to be converted into a TIFF and downloaded. I'm working on making this much more user friendly, but at least it's a starting point.

Much thanks to username: mindless for pointing me in the right direction and hand holding while I figured out the modules.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2004-10-25 22:35

Note: to use the module you need to get tonight's nightly build or update from cvs, as it relies on convert-to-image/tiff operation that was just added to ImageMagick module (along with other convert-to- operations so mortehl can make the module do more..)