Script for color space conversion RGB to CMYK - URGENT Help Wanted

Excuse my ignorance with the basic nature of this question, I don't use InDesign, but I do have a pressing problem regarding it.
My book publisher has just emailed to say that my photography book has been set for the printers in InDesign and the photographs have AdobeRGB color space (which was what I was aksed to send.) The printer needs the images to be in CMYK. The publisher said that he was "pretty sure Adobe Acrobat converts the InDesign files to CMYK" and that he has sent the printer RGB images in the past and they "came out OK". He said that if this will not work, he needs to convert all of the images separately to CMYK.
Can you help with the following:
1. Is he right about the above - can Adobe Acrobat convert the files?
2. Can anyone offer me a script that will convert all of the images in InDesign to CMYK? or will he need to change them individually?
Thanks for any suggestions with this urgent request.
Stephen

1. Acrobat can convert.
2. No need for a script, if the printer needs CMYK, you can export a CMYK pdf.
3. To get the highest quality conversions, you might want to do it in Photoshop.
4. If the images are color managed and the printer has a modern work-flow a color managed RGB PDFX-4 pdf is probably the best way to go...
Harbs

Similar Messages

  • Is color space conversion destructive?

    Is a simple color space conversion from RGB to CMYK, and then back to RGB a destructive process – meaning will image data be altered in a way that makes it different that the original image? Like jpg compression? I’ve been working with multi-spectral image data in 4 bands (channels) that is not recognized by PS in it’s original form (R,G,B,NIR), hence the color space swap in order to manipulate. It is a very kludgy way to work with output from some amazing imagery. If the image is trashed by doing this, it becomes another reason for seeking out a better way to edit them. If it does not negatively effect the data I have a bit more time to find a better way. So far, it’s a tough row to hoe.
    Thanks! TLL ( long time no post )

    The experimental evidence is that the conversion is a lossy process. Take an image & duplicate it. Change one of the images from RGB to CMYK and back.Then change the blend mode to difference and you will see the resulting image is not black, but has low level colored noise - conversion errors.
    Paulo

  • Conversion rgb in cmyk

    Hello everybody,
    i use kuler first time - cool tool!
    I have a questions about conversion rgb in cmyk.
    In Photoshop or Illsutrator i get complete different values
    for the same color.
    I try to change the color profiles adjustment, but never i
    get the same color values
    like kuler. For example: in kuler the cmyk color 0/60/100/0
    would translate in rgb 255/102/0.
    In PS i get 235/136/14 (in depends what profile i used).
    Which color conversion engine or profile use kuler? Can i get
    the same profile for PS or IL?
    Regards, Lars

    Hello, kuler color conversions should be consistent with
    Illustrator CS3, since kuler is a subset of the Illustrator CS3
    Live Color feature. Generally speaking, it's best to create your
    kuler theme in the color space you want to use.
    More on color management
    here.
    Hope this helps!
    Sami

  • Color space conversions to/from XYZ broken?

    I have just started writing a plug-in in which I need to convert data from an RGB space to XYZ and back again. For this I am using the sPSColorSpace->Convert16 function.
    Unfortunately, it seems that the conversions to and from XYZ are not performed correctly. I do not know exactly what *is* calculated, but XYZ it's not. One of the giveaways is that the result of the conversion depends on the color space of the RGB data, including the gamma. Instead, the XYZ values should be uniquely defined, independent of the source RGB space.
    I have since created a work-around, by using the sPSColorSpace->Convert16 function to convert RGB values to Lab, and converting those to XYZ and back again with my own code. In this way, everything works as expected. However, it's unsatisfactory for two reasons: (1) a basic SDK function seems to be broken, and (2) my workaround is very slow, introducing 4(!) redundant nonlinear transforms per pixel.
    Does anyone have similar or contrary experiences? And, assuming I haven't messed up, how should one go about notifying Adobe about this? Thanks in advance!
    Simon

    >XYZ is a device independent color space, not a transformation of RGB (like HSB).
    That is exactly what I meant. Sorry for expressing myself poorly.
    The test I did was as follows. I applied my filter as a smart filter to an RGB smart object. I then *converted* (not assigned) the RGB object to another color space using a relative colorimetric conversion. Because my filter operates in the XYZ space, the (visual) output should be unaffected by the color space conversion. Unfortunately, the output changed.
    When I changed my filter to use Convert16 to convert to Lab (instead of XYZ) and back, and manually performed the Lab<->XYZ conversion, the (visual) output was indeed independent of the source color space.
    My conclusion is that XYZ as calculated by the Convert16 function *is* a 'transformation of RGB', but, you are correct, it shouldn't be. The conversion does not properly account for the source RGB space.
    Simon

  • Enabling LOG C color space conversion with cLog or sLOG footage.

    Hi Gang,
    I shoot Sony F3, Canon C100 and Canon 5DMk3 cameras in their respective LOG modes whenever possible.   I would like to apply the newly added LOG LUT feature designated for ARRI footage to footage from these cameras.  Although LOG C is different than the other LOG modes, it should be a good starting point to color grading. 
    Unfortunately, I can't seem to get the ARRI Log C toggle option to appear with my footage. Apparently there is a certain Metadata Tag in Alexa footage which must make it possible for the Radio Button to appear.  I basically want to trick my FCP-X interface into believing the footage is ARRI Alexa Log-C footage even though it is actually Canon cLog, Sony sLog or Cinestyle.  Yes, I know the Alexa Log-C profile is a bit different from the ideal profiles for each of these cameras, but it should be close enough for my needs.  I will then fine tune each individual camera's color corrections using the FCP-X color panes.  What I want is the Curve effect which is difficult to mimic using the Standard Color Panes.  BTW, I've been using a 3rd party effect called Natress Curves for this until now, but would like to start using the built-in LUT feature instead since my company has multiple editbays which lack 3rd party plugins.  Also, using the built-in color space conversion looks much simpler than the techniques I've developed for the Natress Plugin.
    Can anyone tell me which metadata tag is necessary in order to activate the LOG-C LUT option?   Thanks  Matt Thomas

    Thanks for the reply BenB.  I appreciate your willingness to help with this topic, but I'm not sure you understand what I want to do and why. 
    I want to use the LUT for its Luma curve in actual color corrections in FCP-X. I am not trying to use it for display of dailies or other uses which are common with LUTs.
    LOG space color space is similar, but not identical with many cameras.   ARRI LOG-C is also very similar to the color space used in Cineon and DPX film scans which I used to see regularly.  The black points may vary, but I can adjust black points in many ways.  The general shape of the LUT curve should be very similar to other curves used to correct other LOG spaces. If these curves were dramatically different from eachother, they wouldn't be defined as LOG space.  LOG is a mathematical formula for how the bits are arranged and reserved in the file structure which is somewhat similar to how stills photographers manage Zone System exposure indexes  There is no magic about the way ARRI defines this.  It is a way for ARRI footage to match 35mm scans easily and other cameras using LOG space such as the ones I am using regularly.  I would LOVE to have Apple include specific LOG LUT's for each camera which I use, but since they have not done that yet, I would like to experiement with the included one which is designed for ARRI LOG-C. 
    I am a very experienced professional and understand very well how and why LUT's are being used in many ways across the industry.  Yes, I use Resolve for certain tasks and yes, it is the best place to do advanced color work.  The new Resolve LOG color correction pane is very useful and superior to all tools I've seen.   But I also use and enjoy the convenience of keeping my material within FCP-X as much as possible.  And in many cases, FCP-X color correction tools are adequate for my needs.  But when using Cinestyle,  cLOG or sLOG footage on my cameras, controlling the rolloff of highlights is very difficult to do with the simple 3-way controls. in FCP-X.
    Since FCP-X has no Luma or RGB curves tool built-in, I currently use the Nattress Curves plugin in an Adjustment layer over my timelines to provide a basic film look. The downside to this is that not all my editbays have licenses for the 3rd party plugins, and also there are some odd workflow issues which would be much simpler to manage the way that FCP-X does with Arri LOG-C footage. 
    My question is how to trick FCP-X into thinking the footage is LOG-C so I can use the newly added checkbox to interpret the footage using the LOG-C LUT in an early stage of color correction while the footage is still managed in Floating Point color space. 
    The LOG-C profile in the Nattress plugin works as a very good starting point for advanced color correction for footage shot by Sony F3, Canon C and Canon Cinestyle cameras.  In fact, it is also a fairly good starting point for GoPro Hero3 ProTune footage as well.  I am not attempting ot use the LOG-C LUT solely for color correction.  Instead, I want to use it for CineGamma tonal correction which is only possible with a proper luma or RGB Curve.   I will then use the FCP-X color panes to ad specific modifications to each camera's footage to more closely match what I'm looking for.  If I'm dealing with a camera with lower dynamic range, I adjust the FCP-X panes to compensate for that particular camera, then Paste these attributes to all the clips from that camera.  This often results in a very good match from camera to camera while using the same LUT for the tonal look.   I would like to test this technique using the built-in ARRI LOG-C feature, but unfortunately, cannot until FCP-X allows me to use the LUT on other kinds of footage. 
    I hope this makes sense.   Keep in mind I am a very experienced and technical user and have a long history in the blogosphere and forums about these kinds of topics.  I have very specific reasons for why I want to do this, and until Apple provides other LOG correction tools or a bonafide Curves tool, I am seeking to find a way to use the LOG-C as an alternative solution.  BenB, it could be that Apple has closed out the LUT from other types of footage because of comments from their close peers which are not exactly helpful to actual real-world users.  There are many more cLOG, sLOG and Cinestyle users using FCP-X than there are ARRI users and it is unfortunately they chose to limit their features to exclude these somewhat arbitrarily.  My goal is to find a workaround for this odd decision and would love any tips or suggestions if the answer lies in the footage Metadata.

  • I would like to design a poster, when I place my photos on the page  under the "links" "colour space" section it says the colour space is RGB not CMYK even though my document is set up as CMYK.  Can/do i need to change this?  i am worried it will be a pro

    I would like to design a poster, when I place my photos on the page
    under the "links" "colour space" section it says the colour space is RGB not CMYK even though my document is set up as CMYK.  Can/do i need to change this?  i am worried it will be a problem when my poster goes to the commercial printers who want CMYK

    Yes, it will be a problem. Convert the images in Photoshop using the printer's color profiles or a standard CMYK profile.
    Mylenium

  • CMYK and Gray Color Space Conversion

    Hi All,
    I have read the Adobe Photoshop CS3 SDK and found Color Space Suite which will color conversion, but i can't able to find sample code.
    Can anyone guide how to convert color? or any sample?
    Regards,
    Selvakumar

    Hi All,
    I have read the Adobe Photoshop CS3 SDK and found Color Space Suite which will color conversion, but i can't able to find sample code.
    Can anyone guide how to convert color? or any sample?
    Regards,
    Selvakumar

  • Color space conversion due to transparency ...

    Hi there!
    Let's assume we have a document that contains two RGB images, one of them is set to 70 % transparency. When printing to PDF, the 70 % transparent RGB image is converted to CMYK, the other one retains its RGB color space ...
    I seem to understand that this is due to the current transparency color space setting. I could change that to RGB.
    But I wonder: Is there no way to keep the color space here, no matter if it is CMYK or RGB the images are coming with?
    Thanks,
    Klaus

    Klaus,
    To learn what happens with flattening and color, you should refer to this excellent document, "Transparency in Adobe Applications: A Print Production Guide."
    http://www.adobe.com/designcenter/creativesuite/articles/cs3ip_printprodtrans.pdf
    Here's are relevant section (page 24):
    Printing transparency: step-by-step
    When printing a page containing live transparency from InDesign CS3 and the Transparency Blend Space is set to Document CMYK, the following steps will take place (steps 3 and 6 may perform color conversions):
    1 Transparency is detected on a spread by the Flattener.
    2 The Flattener refers to the Transparency Blend Space setting to determine the appropriate color space in which to blend transparent objects. In this example, Document CMYK was selected. The Document CMYK color space is determined by the active color settings (Edit > Color Settings).
    3 Any image that is tagged with a color space that differs from the selected blend space is converted to Document CMYK.
    4 The Flattener flattens the transparency.
    5 The flattened data is passed to the print engine.
    6 The print engine compares the color information in the flattened data with the Printer Profile color space set in the Print dialog box. If the color settings dont match, the print engine converts the colors to the color space indicated by the Printer Profile.
    7 The color-managed job is printed.

  • Color space conversion problem when importing JPEG's

    Hi,
    I'm currently playing with the trial version of LR. While importing JPEG's with different color spaces (sRGB and Adobe RGB) to LR I've noticed a strange effect: There is a small but noticable difference in color, depending if the JPEG was previously saved in AdobeRGB, or sRGB. All the images I've tested so far should not contain critical colors that exceed normal sRGB. When opened in CS2 both versions of a JPEG, AdobeRGB and sRGB, typically look perceptually identical, no matter if I leave the sRGB image to sRGB, or convert it to the working space (AdobeRGB). Also my color-managed image viewer behaves as it should. So I don't think it's a matter of the different color spaces.
    Looking at the imported images in LR I would say that the AdobeRGB image is correctly converted while the sRGB image suffers from a slight reddish cast, most noticable in skin tones. The effect is not as strong as if I would load the sRGB image into CS2 and skip color conversion to my working space (AdobeRGB).
    The sRGB versions of the JPEG's were obtained from the AdobeRGB JPEG's using CS2 for conversion.
    Anyone else here experienced a similar problem? Is this a bug in the xRGB-to-ProPhotoRGB conversion of LR, or a feature?
    /Steffen

    Hi Uli,
    thanks for pointing me to your thread. I followed the discussion with great interest. Actually, I think the effect I am describing here is of different nature and a LOT stronger, at least for the type of images I've tested.
    I did some more experiments yesterday with interesting results:
    1) When I export a processed RAW from LR to JPEG or PSD, no matter what Color Space (I tested AdobeRGB, sRGB and ProphotoRGB), and re-import those JPEG/PSD's to LR, they look absolutely identical to the RAW I started with. Also, at first glance, they look similar when opened in CS2, but only because I tested with color images. I can indeed see small differences when testing with B/W, as you described in your "Color management bug" thread.
    2) When I change the color space of an PSD or JPEG inside CS2 (I used the default setting 'relative colorimetric') and save it to JPEG and then import this JPEG to LR, colors are far off. The strength of this mostly reddish color cast depends on the color space of the imported JPEG, strongest for Prophoto, less strong for Adobe and sRGB. Interestingly, when I convert the color space inside CS2 and save the result to PSD, it will display correctly when imported in LR. Another interesting side effect: the thumbnails of LR-exported JPEG's in the "Open" dialogs of CS2 and LR (I guess those are not color-managed) show the typical color-flatness for the Adobe and even more the ProPhoto version. For the CS2-converted JPEG's, all thumbnails look just a colorful as the thumbnail of the sRGB version.
    3) Such an image which doesn't display correctly in LR will keep its color cast when exported again to a JPEG (not sure about PSD). So something goes wrong with the color conversion during the import of such CS2-converted images.
    My explanation so far is that CS2 uses a slightly different way of coding the colorspace information in the metadata of JPEG's which somehow prevents LR to recognise the color space correctly.
    Can you confirm this behaviour?
    Steffen

  • Different results of color space conversion

    I am converting a raw image.
    1. First in ProPhoto, passing it to PS CS3, accepting ProPhoto (against the working color space), and then I convert it in sRGB in Edit.
    2. Next, converting it in ProPhoto, but when CS3 receives it, I ask for immediate conversion in sRGB, the working space.
    3. Third, I change the color sapace in ACR to sRGB and pass the image to CS3.
    Of course, the ACR adjustment parameters are identical in the three processes.
    1 and 3 are almost identical (a difference layer does show differences, but I don't see them on the results without huge boosting, and that shows quite random, noise-like difference).
    However, 1 and 2 are *vastly* different. The difference, boosted by 2 EV clearly shows the original texture, which is determined by a pecularity in the blue channel.
    What is the explanation for the difference between the two conversion from ProPhoto to sRGB?
    The conversion engine is Adobe (the conversion immediately at receiving the image does not ask me for the engine).
    http://www.panopeeper.com/Download/ProPhoto_to_sRGB_Discrepancy.tif contains three layers with the three versions.
    http://www.panopeeper.com/Download/ProPhoto_to_sRGB_inProPhoto.tif is the unconverted, i.e. ProPhoto version.

    > I played around a bit with your samples and I could get close to your "Converted when receiving" version by using the Microsoft ICM engine (other options like Dither and Black point comp didn't produce big differences that I could see). Is it possible that is what you have as the engine in Edit>Color Settings?
    As I posted, I am using the Adobe engine.
    > I reproduced your exact steps (but in CS4), and there was no difference whatsoever between the three. Pitch black in difference blend mode.
    I don't understand how you reproduced these steps. The file I uploaded is already in sRGB.
    Anyway, I repeated the entire procedude carefully, the result is the same.
    The raw file can be downloaded from http://www.panopeeper.com/Download/CCC_ISO0100_01208.ARW, the adjustment parameters are in http://www.panopeeper.com/Download/CCC_ISO0100_01208.xmp
    With these files it is possible to repeate the entire process.
    Pls note, that the conversion from raw to TIFF occured in 16bit mode, I converted the demo file to 8bit in order to reduce the size.

  • Color space conversion YUV 4:2:0 - ??? - 4:2:2 - 4:2:0 ?

    Hello all,
    My "workflow" is:
    1. Import H264 L5 @ Main YUV 4:2:0 video from Canon 5Dmk2 (1080p)
    2. Finalize the sequence in Premiere (PRO CS4)
    3. Export the footage as "Uncompressed Microsoft AVI" V210 at 10bit YUV 4:2:2
    4. Feed to x264 H.264 encoder via Avisynt to convert / frameserve at YV12 (YUV 4:2:0) as required by
        the H264 (use Avisynth ConvertToYV12) to get the "raw" H.264 L4.1 @ High YUV 4:2:0 video stream
    (5. encode aac, mux with subtitles, and h264 video to mp4 container)
    Question is:
    a) While converting between the color spaces as above, what kind of quality loss I am experiencing?
    b) Any thoughts on how to do this smarter, or if I am outright ruining the footage before it gets to its MP4 container?
    c) Is there any way to export the video frrom Premiere (PRO CS4) as uncompressed YV12 (YUV 4:2:0)
    (and yes; I know I could use bundled MainConcept H.264 codec, but I like the control x264 gives, and _arguably_ it may produce better looking footage at the same framerate / settings)
    Looking forward to hearing some expert advice on the matter at hand!

    Thanks Jim.
    I gave UT a shot. However I had it crashing few times in encoder. Then googled for alternatives and there seems to be a whole bunch of YV12 capable lossless codecs out there: Hyffuyv, Lagarith, MSU, Snow, and FFV1. I tested some of them, and Lagarith seems to do the trick for me (in Lagarith, setting "prevent upsampling" flag maybe worthwile). So I am now to: 4:2:0 - ??? - 4:2:0; that is:
    1. Import H264 YUV 4:2:0 video to premiere
    2. Work with the video in premiere and export using "Microsoft AVI - Lagarith lossless codec" to YV12 AVI (YUV 4:2:0)
    3. Use Avisynth to frame serve AVI to x264 (only line in avisynth script is AviSource ("inputYV12.avi") )
    I wonder what color space Premiere works internally to apply all the effects and everything..
    Again - Thanks for making me think alternatives here!!
    PS. for v210, I do not have card, but I can export in v210 from premiere. Then I can either use VirtualDubs build-in v210 codec (or YUYV had I exported to that) to convert back to something else. There is also a video for windows codec for v210 that I tried (google: drastic v210) you could use.

  • Script for Free Space in Datafiles

    Hi
    Got the below script from metalink [130866.1] to identify free space within a data file.Couple of questions
    1)Is dba_Free_Space an exact indicator of how much space is available in a file.
    2) What is the significance of using blocks in vs using bytes.
    cursor c_freespace(v_file_id in number) is
    select block_id, block_id+blocks max_block
    from dba_free_space
    where file_id = v_file_id
    order by block_id desc;
    Thanks in advance for you help.
    Script for checking backwards for free space at end of file
    REM Script is meant for Oracle version 9 and higher
    REM -----------------------------------------------
    set serveroutput on
    exec dbms_output.enable(1000000);
    declare
    cursor c_dbfile is
    select f.tablespace_name,f.file_name,f.file_id,f.blocks,t.block_size
    from dba_data_files f,
    dba_tablespaces t
    where f.tablespace_name = t.tablespace_name
    and t.status = 'ONLINE'
    order by f.tablespace_name,f.file_id;
    cursor c_freespace(v_file_id in number) is
    select block_id, block_id+blocks max_block
    from dba_free_space
    where file_id = v_file_id
    order by block_id desc;
    /* variables to check settings/values */
    dummy number;
    checkval varchar2(10);
    block_correction number;
    /* running variable to show (possible) end-of-file */
    file_min_block number;
    /* variables to check if recycle_bin is on and if extent as checked is in ... */
    recycle_bin boolean:=false;
    extent_in_recycle_bin boolean;
    /* exception handler needed for non-existing tables note:344940.1 */
    sqlstr varchar2(100);
    table_does_not_exist exception;
    pragma exception_init(table_does_not_exist,-942);
    begin
    /* recyclebin is present in Oracle 10.2 and higher and might contain extent as checked */
    begin
    select value into checkval from v$parameter where name = 'recyclebin';
    if checkval = 'on'
    then
    recycle_bin := true;
    end if;
    exception
    when no_data_found
    then
    recycle_bin := false;
    end;
    /* main loop */
    for c_file in c_dbfile
    loop
    /* initialization of loop variables */
    dummy :=0;
    extent_in_recycle_bin := false;
    file_min_block := c_file.blocks;
    begin
    <<check_free>>
    for c_free in c_freespace(c_file.file_id)
    loop
    /* if blocks is an uneven value there is a need to correct with -1 to compare with end-of-file which is even */
    block_correction := (0-mod(c_free.max_block,2));
    if file_min_block = c_free.max_block+block_correction
    then
    /* free extent is at end so file can be resized */
    file_min_block := c_free.block_id;
    else
    /* no more free extent at end of file, file cannot be further resized */
    exit check_free;
    end if;
    end loop;
    end;
    /* check if file can be resized, minimal size of file 16 blocks */
    if (file_min_block = c_file.blocks) or (c_file.blocks <= 16)
    then
    dbms_output.put_line('Tablespace: '||c_file.tablespace_name||' Datafile: '||c_file.file_name);
    dbms_output.put_line('cannot be resized no free extents found');
    dbms_output.put_line('.');
    else
    /* file needs minimal no of blocks which does vary over versions */
    if file_min_block < 16
    then
    file_min_block := 16;
    end if;
    dbms_output.put_line('Tablespace: '||c_file.tablespace_name||' Datafile: '||c_file.file_name);
    dbms_output.put_line('current size: '||(c_file.blocks*c_file.block_size)/1024||'K'||' can be resized to: '||round((file_min_block*c_file.block_size)/1024)||'K (reduction of: '||round(((c_file.blocks-file_min_block)/c_file.blocks)*100,2)||' %)');
    /* below is only true if recyclebin is on */
    if recycle_bin
    then
    begin
    sqlstr:='select distinct 1 from recyclebin$ where file#='||c_file.file_id;
    execute immediate sqlstr into dummy;
    if dummy > 0
    then
    dbms_output.put_line('Extents found in recyclebin for above file/tablespace');
    dbms_output.put_line('Implying that purge of recyclebin might be needed in order to resize');
    dbms_output.put_line('SQL> purge tablespace '||c_file.tablespace_name||';');
    end if;
    exception
    when no_data_found
    then null;
    when table_does_not_exist
    then null;
    end;
    end if;
    dbms_output.put_line('SQL> alter database datafile '''||c_file.file_name||''' resize '||round((file_min_block*c_file.block_size)/1024)||'K;');
    dbms_output.put_line('.');
    end if;
    end loop;
    end;
    Example output for Oracle version 9 and higher:
    Tablespace: TEST Datafile: /oradata/v112/test01.dbf
    cannot be resized no free extents found
    Tablespace: UNDOTBS1 Datafile: /oradata/v112/undotbs01.dbf
    current size: 9384960K can be resized to: 106496K (reduction of: 98.87 %)
    SQL> alter database datafile '/oradata/v112/undotbs01.dbf' resize 106496K;
    Tablespace: USERS Datafile: /oradata/v112/users01.dbf
    current size: 328960K can be resized to: 117248K (reduction of: 64.36 %)
    Extents found in recyclebin for above file/tablespace
    Implying that purge of recyclebin might be needed in order to resize
    SQL> purge tablespace USERS;
    SQL> alter database datafile '/oradata/v112/users01.dbf' resize 117248K

    Hi
    Got the below script from metalink [130866.1] to identify free space within a data file.Couple of questions
    1)Is dba_Free_Space an exact indicator of how much space is available in a file.
    2) What is the significance of using blocks in vs using bytes.
    cursor c_freespace(v_file_id in number) is
    select block_id, block_id+blocks max_block
    from dba_free_space
    where file_id = v_file_id
    order by block_id desc;
    Thanks in advance for you help.
    Script for checking backwards for free space at end of file
    REM Script is meant for Oracle version 9 and higher
    REM -----------------------------------------------
    set serveroutput on
    exec dbms_output.enable(1000000);
    declare
    cursor c_dbfile is
    select f.tablespace_name,f.file_name,f.file_id,f.blocks,t.block_size
    from dba_data_files f,
    dba_tablespaces t
    where f.tablespace_name = t.tablespace_name
    and t.status = 'ONLINE'
    order by f.tablespace_name,f.file_id;
    cursor c_freespace(v_file_id in number) is
    select block_id, block_id+blocks max_block
    from dba_free_space
    where file_id = v_file_id
    order by block_id desc;
    /* variables to check settings/values */
    dummy number;
    checkval varchar2(10);
    block_correction number;
    /* running variable to show (possible) end-of-file */
    file_min_block number;
    /* variables to check if recycle_bin is on and if extent as checked is in ... */
    recycle_bin boolean:=false;
    extent_in_recycle_bin boolean;
    /* exception handler needed for non-existing tables note:344940.1 */
    sqlstr varchar2(100);
    table_does_not_exist exception;
    pragma exception_init(table_does_not_exist,-942);
    begin
    /* recyclebin is present in Oracle 10.2 and higher and might contain extent as checked */
    begin
    select value into checkval from v$parameter where name = 'recyclebin';
    if checkval = 'on'
    then
    recycle_bin := true;
    end if;
    exception
    when no_data_found
    then
    recycle_bin := false;
    end;
    /* main loop */
    for c_file in c_dbfile
    loop
    /* initialization of loop variables */
    dummy :=0;
    extent_in_recycle_bin := false;
    file_min_block := c_file.blocks;
    begin
    <<check_free>>
    for c_free in c_freespace(c_file.file_id)
    loop
    /* if blocks is an uneven value there is a need to correct with -1 to compare with end-of-file which is even */
    block_correction := (0-mod(c_free.max_block,2));
    if file_min_block = c_free.max_block+block_correction
    then
    /* free extent is at end so file can be resized */
    file_min_block := c_free.block_id;
    else
    /* no more free extent at end of file, file cannot be further resized */
    exit check_free;
    end if;
    end loop;
    end;
    /* check if file can be resized, minimal size of file 16 blocks */
    if (file_min_block = c_file.blocks) or (c_file.blocks <= 16)
    then
    dbms_output.put_line('Tablespace: '||c_file.tablespace_name||' Datafile: '||c_file.file_name);
    dbms_output.put_line('cannot be resized no free extents found');
    dbms_output.put_line('.');
    else
    /* file needs minimal no of blocks which does vary over versions */
    if file_min_block < 16
    then
    file_min_block := 16;
    end if;
    dbms_output.put_line('Tablespace: '||c_file.tablespace_name||' Datafile: '||c_file.file_name);
    dbms_output.put_line('current size: '||(c_file.blocks*c_file.block_size)/1024||'K'||' can be resized to: '||round((file_min_block*c_file.block_size)/1024)||'K (reduction of: '||round(((c_file.blocks-file_min_block)/c_file.blocks)*100,2)||' %)');
    /* below is only true if recyclebin is on */
    if recycle_bin
    then
    begin
    sqlstr:='select distinct 1 from recyclebin$ where file#='||c_file.file_id;
    execute immediate sqlstr into dummy;
    if dummy > 0
    then
    dbms_output.put_line('Extents found in recyclebin for above file/tablespace');
    dbms_output.put_line('Implying that purge of recyclebin might be needed in order to resize');
    dbms_output.put_line('SQL> purge tablespace '||c_file.tablespace_name||';');
    end if;
    exception
    when no_data_found
    then null;
    when table_does_not_exist
    then null;
    end;
    end if;
    dbms_output.put_line('SQL> alter database datafile '''||c_file.file_name||''' resize '||round((file_min_block*c_file.block_size)/1024)||'K;');
    dbms_output.put_line('.');
    end if;
    end loop;
    end;
    Example output for Oracle version 9 and higher:
    Tablespace: TEST Datafile: /oradata/v112/test01.dbf
    cannot be resized no free extents found
    Tablespace: UNDOTBS1 Datafile: /oradata/v112/undotbs01.dbf
    current size: 9384960K can be resized to: 106496K (reduction of: 98.87 %)
    SQL> alter database datafile '/oradata/v112/undotbs01.dbf' resize 106496K;
    Tablespace: USERS Datafile: /oradata/v112/users01.dbf
    current size: 328960K can be resized to: 117248K (reduction of: 64.36 %)
    Extents found in recyclebin for above file/tablespace
    Implying that purge of recyclebin might be needed in order to resize
    SQL> purge tablespace USERS;
    SQL> alter database datafile '/oradata/v112/users01.dbf' resize 117248K

  • Displayport to HDMI is unable to get correct color space Limited RGB Range = Poor Image Quality

    RGB Full Range does not work and now my EIZO Monitor converts into Digital Television, which is not appropriate for color accuracy. Does anyone in this forum have the same issues as well.

    RGB Full Range does not work and now my EIZO Monitor converts into Digital Television, which is not appropriate for color accuracy. Does anyone in this forum have the same issues as well.

  • Changeing color modes from rgb to cmyk

    Good Morning Everyone,
    I am editing a file for a Realestate customer of mine. For some reason her previous designer didn't understand to make print material in cmyk ( I cant believe how many "designers" dont understand the difference.). I am now going back and correcting that issue so they will print accuratly. Usually I can do this in Illustrator and just go to the edit menu and then go to edit colors and choose convert to cmyk. That option is greyed out in this situation. Does anyone no why? I am attaching a screen shot. I am using illustrator cs6 on a mac running 10.7.5.

    What Jacob says but check that you Color Settings are set right for the type of printing in question. Otherwise the colours may not convert satisfactorily.

  • Is the  color space conversion needed for optimal uploads to Blurb using the book module automatic?

    Just uploaded my first book to Blurb  using the module in LR4. Blurb recommendations are to upload sRGB if using their software, or to convert to their cmyk profile if using Indesign or a pdf workflow ( I think).
    So, I hope that the proper conversion is done automatically when uploading using the new book module. I uploaded a mix of edited raw nefs, edited tifs, psd's, jpegs which normally I would convert upon export to srgb to use in the stand alone booksmart app with great success color wise.  I'll see my new books in a couple of weeks, but I'd like to rest easy till then.

    Yes, the direct export sends sRGB to Blurb.

Maybe you are looking for