I found a website that allows you to download old (public domain) books. Each page is saved as a jp2, which I can't open in Photoshop CS3. I found an plugin that enables me to open them, and I could have sworn it was working, but it suddently stopped working for some reason.
Anyway, I have a folder full of folders with over a thousand jp2 images. I can open them in Pixelmator and save them as Photoshop files, but that's very time consuming. So, can anyone tell me if there's a way to do a batch change - convert every jp2 image in the folder to a format that I can open in Photoshop CS3?
Also, can anyone recommend an online guide to batch changing. I'd like to learn how to batch change file sizes; for example convert all images that are 4,000 pixels wide to 500 pixels wide. I'd also like to learn how to batch change file names. I probably have to pursue each of these separately, but I just wondered if there's some sort of online central guide to batch changing.
Thanks.
I should have done a better job explaining what I'm trying to do. My ultimate goal is to resize jp2 images and save them for the web with various extensions - .jpg, .png, etc. So I simply need to convert them to Photoshop files so I can open them in Photoshop, modify them, then save them with the proper extensions.
I'll check out IrfanView, though; if it helps with the process, then I'll give it a try.
Thanks.
I downloaded the books from www.biodiversitylibrary.org. The images are simply in a jp2 format (e.g. MyImage.jp2). I'd never heard of it until I downloaded the books. I'll check out acrobat.com. Thanks.
P.S. I have to go to work now (no Internet connection there), so I won't be able to reply until tomorrow afternoon.
".jp2" is just the file extension for JPEG 2000, which a number of applications can open, including your Photoshop CS3, Photoshop 13 ("CS6"), Apple Preview, GraphicConverter, Safari, Firefox, etc.. Just install the JPEG2000.plugin from the Optional Plug-Ins folder in your CS3.
Take a look here:
http://www.fileinfo.com/extension/jp2
Mac OS |
|
Ok, here is one way to convert your jp2 files to jpg
First make sure you can see the documents in Bridge if so continue.
Find ExtendScript Toolkit on your system and open it. This gets installed at the same time as Photoshop.
Make sure you have navigated to the folder where you have the jp2 files in Bridge.
Copy and paste the following code into ExtendScript toolkit and run the code.
#target bridge
app.document.deselectAll();
var thumbs = app.document.getSelection("jp2");
for(var i = 0;i < thumbs.length;i++){
if(thumbs[i].spec instanceof File){
var thumb = thumbs[i];
var bm = new BitmapData(thumb.spec);
bm = bm.rotate(thumb.spec.rotation);
var Name = decodeURI(thumb.spec.name).replace(/\.[^\.]+$/, '');
var exportFilePath = app.document.presentationPath + "/" + Name +".jpg";
bm.exportTo(new File(exportFilePath),100);
}
}
Bridge will then create a duplicate of the jp2 files but as jpg in the same folder.
Yes Bridge can create files ![]()
Wow, that's slick! I was amazed how fast it worked.
A couple questions. First, it changed my files to .jpg, but they're very tiny thumbnails. Do you know how I can change the code so it converts the images to .jpg - but they remain the same size?
Also, can I change the images to other formats, like .png?
Thanks.
If you don't have the install cd you can download the extra content for cs3 here:
(be sure to follow the directions on the page)
http://prodesigntools.com/download-adobe-cs4-and-cs3-free-trials-here. html
On windows with that plugin the files from that site open in cs3 and you could use the File>Scripts>Image Processor to convert the files to regular jpegs.
Or make an action using file>save for web or use Paul's Picture Processor:
http://www.scriptsrus.talktalk.net/
This the plugin version from cs3
Ah, I have done some more tests onanother machine that has CS3 installed and found that this does not read the correct size of jp2, and does not read the correct size of cache files!
I wonder what size of JPGs you were after?
Here is another version that should work with CS3 but only upto 1024 pixels on the longest side...
#target bridge
app.bringToFront();
function main(){
app.document.deselectAll();
var thumbs = app.document.getSelection("jp2");
for(var i = 0;i < thumbs.length;i++){
if(thumbs[i].spec instanceof File){
var thumb = thumbs[i];
app.synchronousMode = true;
bm = thumb.core.preview.preview;
app.synchronousMode = false;
bm = bm.rotate(thumb.rotation);
var Name = decodeURI(thumb.spec.name).replace(/\.[^\.]+$/, '');
var exportFilePath = app.document.presentationPath + "/" + Name +".jpg";
bm.exportTo(new File(exportFilePath),100);
}
}
};
main();
Thanks for your help. The jp2 images I want to convert - at least some of them - measure 2587 × 3713 pixels. The most important goal is to convert them to jpg's so I can open them in Photoshop. I finally found a JPG 2000 plugin in my Bridge folder that I pasted into my Photoshop plugins folder, and it works.
It would be nice if I could reduce the file size on some images as well. I'm generally shooting for finished images that are 500 pixels wide. So if a page is 2500 pixels wide, that means reducing it by more than 50%. But some pages have tiny images that don't need to be reduced at all. So I'll probably make multiple copies of each folder and batch process several sizes.
I didn't know working with images could be so much work!
North America
Europe, Middle East and Africa
Asia Pacific