How to download images in high resolution
How to download images in high resolution
When I upload photographic images Cardbox compresses jpeg for storage. That's fine until I want to extract these images and need to have them in their original high resolution. So far I have not found a way of extracting them other than in their compressed form. The original images are not in Amazon S3 though they are one OneDrive.
Can somebody help please?
I never put an actual image into Cardbox, partly for this reason; I simply include in the cardbox record a link to the original image in a separate folder.
The syntax for the link is something like: file:C:\photos\birds\chaffinch0241.tif
Hope this helps.
Well, that is the blessing of JPG compression!
An aside from the previous communications re. image quality, I wanted to check my cardbox3.ini file for its compression settings but cannot find it on my computer. Where should it be? Can I create one using say Notepad? what else might be in such a file? Does Cardbox automatically 'look' in this file when opening??
In my mail I wrote "cardbox3.ini in your windows folder.". So, there it is.
There's a much easier solution to circumvent the JPG compression of Cardbox and it's built-in.
When a JPG is copied to the clipboard and then pasted into Cardbox, it will be re-compressed because Cardbox does not know it was originally a JPG. It's just a collection of pixels.
For those of you who doubt it, try this:
1. Read a high-quality JPG from disk and look at the image size in bytes that Carbox reports. It will be the same as the original file. Do not save the record but:
There even no need to use an image programme to copy the original JPG to the clipboard. You may even copy the image that you've just read into Cardbox and then paste it. That one will be compressed because, again, Cardbox will no longer know that it was a JPG.
So, anyone who wishes to keep the original quality of a JPG (the size of the image is irrelevant) must read it from file, that's all.
You are right. **Only** in case of jpg (no Tif!) + reading the file + not any resizing + no resolution change in Cardbox while saving the record. And I' me sorry, this situation I did not met very frequent.
My advice is always: leave the original file untouched on disk, store a 800-1000 pixels high/wide image in you db with a link to your original. A database with 5000 unchanged images of camera's today, will soon be slow an irritant.
Of course someone should consider the disadvantages of storing large images in a database. But my remarks relate to images of all sizes. In other words, if someone wants to store small images in Cardbox but also wants to keep the original quality, then the simplest solution would be to read them from file, which is by all means the simplest way anyway.
And as to your observation:
Nobody should use Cardbox to resize or change an image because the resulting quality is poor. Cardbox is NOT a specialised image-processing programme. It's far better, and I believe it's common practice, to process the images before they are read. We use Irfanview to process the images (resize, watermarks etc) and then read them into the database using macros. Works perfectly and I'm talking about 600,000 ++ images.
Hi Bert, Thanks for yours of 1 Oct and sorry for not replying more quickly. Looks like a great solution. However I can't find cardbox3.ini and am somewhat uncertain what, in a Cardbox context, a 'windows folder' is. You do have at least one non-geek in this forum!
Cardbox3.ini is in c:\windows. If want to change this, you need in most Windows versions admin-rights. The simplest way to change cardbox3.ini is to type from your Run command line in Windows c:\windows\cardbox3.ini and then SHIFT + Ok button. You can edit/save than the file being administrator.
Thanks Bert but I cannot find 'cardox3.ini' in Windows or anywhere else. I read your advice above to create it in Notebook but that's another learning curve!
Ok, if it is not there... Add it!
Run Notepad as Administrator. Otherwise you cannot save this file in this folder.
Thanks. I understand and have done this.
Const BASENAME="D:\OneDrive Docs\OneDrive\Pictures\Pictures\Transfer\No"
Any advice within my very limited competence would be much appreciated.
The macro writes from the selected records all images in their size as they are in Cardbox to folder D:\OneDrive Docs\OneDrive\Pictures\Pictures\Transfer.
I understand now that that you need a (different) macro that reads in field [field name] the location & name of a file on your disk, and you want to move that file to another folder. Doing this the link in Cardbox fields [field name] also has to be updated. Right?
That is in a macro no problem. However, that has to be developed. If you also like to choose the destination folder by a Windows folder dialog then is this also possible.
Your understanding is correct.
I think you mean this:
Thanks so much Bert.
Here is my response to your points above:
The end result would be, as I understand it, that as well as being able to copy compressed images as the macro I sent yesterday does very successfully I would be able to copy images in their original uncompressed form - a very useful addition.
Again apologies for my lack of technical mastery.
|© 2010 Cardbox Software Limited|