Sorry to revive this old thread.
I had a similar issue with wanting to use the Filename in the Title.
I discovered the "$filename_field=8;" option after 3000 resources had
already been uploaded without the title correctly populated. I ran a
command in MySQL on my development system and it put the data where I
needed it. Everything seems to be working correctly, but before I do
this to my production database I'd like to know if there is anything
else I am not considering
update resource set title=file_path where file_path is NOT NULL;
The "NOT NULL" is there because I had 237 items with NULL values in
the file_path. I had already manually edited the title of these
resources and did not want to redo them.
On Nov 10, 3:59 pm, tom <
theorysav...@gmail.com> wrote:
> Depends... if the correction can be universally made (i.e. if your
> files are all similar and it is simply a matter of lightness) you may
> be able to add some options to the imagemagick command in
> image_processing.php (line 692 or so in create_previews_using_im() )
>
> Jeff, who is an expert in the field, has laid out some color
> management ideas for RS, and since my girlfriend is a professional
> color manager, I really hope to get around to figuring out a workable
> color-management solution for RS. Frankly, I've been in the business
> of cosmetics and fashion ads for two years now, where color management
> is *key*, and I just haven't quite grokked it yet. I've seen people
> (the retouchers and printers) who are highly sensitive to color
> changes, and I have noticed and fixed drastic color variations myself.
> I have been getting by by finding various workarounds to make things
> look pretty close (which may in the end be what it is all about...or
> not), but haven't quite understood the *science* of color management
> yet. I keep hoping for an epiphany...
>
> Tom
>
> On Nov 10, 2:46 pm, Kevin Relland <
kevin.rell...@googlemail.com>
> wrote:
>
>
>
> > Hi Tom,
> > i won't need to edit thetitlefield as we only ever store the images
> > under the original file name, but thanks anyway.
> > when the app uploads the image it strips out the icc profiles and
> > converts it to an RGB colorspace, the orignal file is fine when it
> > downloads but any preview image on the site is a very bright
> > conversion
> > Cheers
> > Kev
>
> > On Tue, Nov 10, 2009 at 4:34 PM, Tom Gleason <
theorysav...@gmail.com> wrote:
>
> > > At the very least, you need to conditionalize it to only do that for
> > > thetitlefield, assuming you've added $filename_field=8;
>
> > > # hack:
> > > if ($field==8){
> > > sql_query("update resource settitle= '$value',file_path='$value'
> > > where ref='$resource'");
> > > }
>
> > > That totally relies on never editing thetitlefield. Otherwise you'll
> > > have to start looking at save_resource_data() and
> > > save_resource_data_multi(), because edits to thetitlefield will fall
> > >>>> >> sql_query("update resource settitle= '$value', file_path='$value'
> > >>>> >> where ref='$resource' ");