[CC/JS] Search for Images with white borders

Hello

I'm writing a script, which places the images (jpg-CMYK) in frames. So far so good, but when an image has a white background to its top, right, bottom, OR left border, and then the picture frame should get a border in InDesign (30% black).

Is there a simple way to check this?

I would be very happy to have a few ideas, from points, excerpts of code regardless of...

See you soon

Tobias

Hello

Agree with Peter, but...

You can pass in the type of image clippingPath to get a restricted path to frame and use it to create a shape with geometricBounds to compare with your image gBounds.

Just an idea...

to start:

mImage  = app.selection[0].graphics[0];
with (mImage.clippingPath) {
  currClip = clippingType;
          clippingType = ClippingPathType.DETECT_EDGES;
          useHighResolutionImage = false;
          restrictToFrame = true;
          threshold = 1;
          mPath = paths[0];     // hm... here can be more paths...
          }
mShape = app.activeDocument.graphicLines.add({strokeWidth:0.1});
mShape.paths[0].entirePath = mPath.entirePath;

mImage.clippingPath.clippingType = currClip;

guess: framework (image.parent) is selected

result: Shape is an object with geoBounds and the set of points. How to compare - i.e. mathematical effort and your tolerance assumings...

Shape is to remove() in the end

Jarek

Tags: InDesign

Similar Questions

  • How can I search to search for images with only 2 specific people?

    I have a lot of photos the tag with a lot of peoples names and other keywords.

    I also have many people tag with the face detection feature.

    I want to see pictures that don't have 2 specific people in them, anyone else included.

    I expect Ctrl-click on a few faces and he let me to raise only pictures with those two, no chance.

    I was hoping to enter key words somehow, no luck.

    There has got to be possible, hoping someone can help me get there faster...

    Appreciate the help!

    I want to see the pictures that have included ONLY 2 specific people in them, nobody else.

    It is conceptually simple, but somewhat tedious: first of all, you will find all the photos that have at least 2 people, then you exclude those photos that have other peoples.  It will be much easier if you have all of those organized hierarchically under a parent keyword, for example people.

    1. in the catalogue on the left panel, make a right click of the quick Collection and make clear quick Collection.

    2. click on all photographs.

    3. in the library filter bar, open the metadata browser and configure it to have two columns of keyword.

    4. in the first column, select the keyword in the first person and in the second column, select the second person. This will show the pictures that have at least two keywords, but they can include photos that also have other keywords of people too.

    5. do not change > all select and make Photo > add to quick Collection.

    6. in the catalog Panel, click the quick Collection.

    7. in the library filter metadata browser, delete a keyword column.

    8. in the remaining key word column, if you have intermediate keywords with your keywords of individuals, expand each of them.  For example if you have people > family, people > friends, people > colleagues, etc all expand them to all the keywords of the sheet are show.

    9. Select all the keywords people clicking on the first and then shift-click on the last.

    10 deselect any intermediate parent keyword (e.g. people > family) by Cmd/Ctrl-clicking them.   Deselect the people themselves.

    11. deselect keywords two sheets on the two people.  At this point, you should have all of the keywords selected sheet people except for the key words of two people and no intermediate grouping selected keywords.   Pictures showing are those containing the two desired keywords and at least another keyword of people.

    12. do not change > all select and make Photo > remove from quick Collection.

    13 disable filters by clicking None in the library filter bar.

    Quick Collection now contains these photos that contain the desired keywords of two people and no other keywords of people.

    If you do a lot, you can use any filter plugin to predefine a search that automates this for you.  Set this research would be a bit difficult, so if you want to go this route, send me a private message and I'll take you through it.

  • I want to fill track of Image with white people, but not the bounding box

    I want to fill track of Image with white people, but not the bounding box.

    I have several black and white pen and ink sketches that I want to scan to JPEG, make a record of the image in the drawing line and have "encompassing" transparent but keep the white background in the image.

    Is there a way to do this?

    You would need to expand the trace, and then remove the 'bounding box white' after tracing.

  • How can I search for characters with no applied font?

    I have a document with many Chinese mixed with the English. Unfortunately the conversion of the Word always remove part of the formatting of the characters. It's time consuming to manually find a square with a cross boxes, anyone knows a method to search for characters with no police?

    There seems to be no option in find/replace to choose no font / no as it does with the paragraph styles and character styles.

    See here http://www.kahrel.plus.com/indesign/missing_glyphs.html

    and here http://indesignsecrets.com/tackling-missing-glyphs.php

  • How to search for images in Photoshop Touch?

    Hello.. How are you guys? I hope you all well...

    IAM, which makes a game and I need images with 4 or 5 s position

    Like bird eating (I'll put his face in the first picture, the second mouth open frame, the third picture, eat food)

    but I don't know how to do research on images like this

    Thank you

    Hi thunderxlight11111,

    Although the PS Touch allows to perform searches on Google image for images that are labeled as being available for commercial with change, you should consult the Adobe policy below and confirm the rights of use with the owner before using images in commercial projects.

    http://www.Adobe.com/products/EULAs/usage_rights/imageusagerights.html

    If you click the icon that appears as a bit of mountain and Sun in a setting with a symbol at the top right, it is for adding an image, in this section is an option for Google image searches.

    -Dave

  • Search for images in the album

    Is it possible for me to search for photos: specific keywords within an album? iPhoto had this feature convenient (and many others), I don't know if the Photo has it.

    You can do this by creating a smart album with the constarints

    Key word is...

    and

    album is...

    For example, this smart album will find all photos with the keyword "Flower" in the album "Patagonia 2007."...

  • Advanced search: search for images by camera name

    With photos I can search by keywords, location and dates. But is it possible to search for the device too?

    In my library I have pictures of several devices. I just want to see that all my photos taken with my iPhone in 2015 for example or all photos with my Canon Powershot G7 X. The name of the camera device is stored in the database of the photo library...

    File menu ==> new album Smart - model of camera of criteria is [pick a menu drop down]

    LN

  • Is it possible to MOS engine tuner to search for words with a hyphen (SR - IOV / SRIOV)?

    Hello

    SR - IOV allows to create virtual functions on Ethernet or FC HBA card,

    If new virtual ports can be created and assigned to logical domains with Oracle LMOS.

    Documentation Oracle talk SR - IOV, IE:

    http://docs.Oracle.com/CD/E38405_01/HTML/E38406/sriovoverview.html

    but in may other scenarios (bugs, mos docs, patches) can be read SRIOV

    So, there is a huge difference in MOS looking with the word "SR - IOV" (with hyphen) against the word "SRIOV" (without hyphen)

    Q. is possible to set this specific word (SR - IOV / SRIOV) search engine MOS

    so when you search for this word SR - IOV or SRIOV, he would do an effective search for SR - IOV and SRIOV?

    Thanks in advance,

    Miguel Angel

    Hello Miguel.

    Yes, it is possible.  We will grant so that when your search query contains sr - iov or sriov, it will do an effective search on both.

    Thank you

    Debbie Sta. Iglesia

  • Search for photos with a certain keyword...

    Hello

    I want to use the filter pane to find all the photos with a certain keyword on my drive - and not only in a specified folder.

    Is this possible with the bridge?

    Or do I always go into a specific subfolder and look for for keywords? If so, the filter does not help - if I'm in the folder, I no longer need the help of keywords.

    Thank you

    Use ADSI-> Find to search for key words from the different folders

    http://help.Adobe.com/en_US/bridge/3.0/WS093EF261-B811-489c-8E30-10109DBE71FBa.html

  • search for substring with Oracle context index

    Hello

    I would like to know if it is possible to make a substring search with one of the obtion with context indexes offer.
    (ctxcat, ctxrule, context)


    example:

    I want to search for the word "berub" in a column in table_example.

    the value in the column are:

    The betther
    Bérubé
    A.Berube
    berub
    Berub
    BERUB
    Bell R
    S tartif
    Y Thibeault


    the return line must be:

    Bérubé
    A.Berube
    berub
    Berub
    BERUB
    Bell R

    Could be a simple sql

    Select * from table_example, where upper (a) as superior ('% berub %');)

    How can I do the same action with the index of context and select a statement (catsearch, contains, matches), if it is possible?

    An example would be welcome


    Thank you

    I would like to know if it is possible to make a substring search with one of the obtion with context indexes offer.

    Create your own list of words, and add an attribute substring_index to it. And then create the index with the preference just created.

  • How can I search for files with more than one keyword?

    I ve created a few keywords, and some files in my folder are marked by two, three or more keywords.

    Is it possible to search for files by using more than one keyword in the search field?

    Thank you!

    Use the command find (Edit menu) and in the criteria on the side right is a plus sign to add another criterion and set it to your personal wishes.

    Choose from the results and you should be OK

  • Need help to search for phrases with wildcards

    My application runs through the paragraphs of the text using the user input. I need a way to search using wildcards in words OR phrases.

    Example: If my entries of the user "this % that" I would like it matches "Celaque", "thisOTHERthat", and "this other text here that.

    Any help is great, but I prefer the suggestions that would work in Java

    Search for "this % who" will find "Celaque" and "thisOTHERthat". To find "this other text here that" you must search 'this and that', but you should also use a list of stopwords that does contain no 'this' or 'it '. If you do not specify a list of empty words when creating an index, a list of default stoplist is used. The following shows how to do what you requested using ctxsys.empty_stoplist in the index settings and changing the user input, so that when the user enters "this % that" it seeks "this % one or (this and that).

    SCOTT@orcl_11gR2> create table test_tab
      2    (columnName  clob)
      3  /
    
    Table created.
    
    SCOTT@orcl_11gR2> create index test_idx
      2  on test_tab (columnName)
      3  indextype is ctxsys.context
      4  parameters
      5    ('stoplist ctxsys.empty_stoplist
      6        transactional')
      7  /
    
    Index created.
    
    SCOTT@orcl_11gR2> insert all
      2  into test_tab (columnName) values ('thisthat')
      3  into test_tab (columnName) values ('thisOTHERthat')
      4  into test_tab (columnName) values ('this other text here that')
      5  into test_tab (columnName) values ('other data')
      6  select * from dual
      7  /
    
    4 rows created.
    
    SCOTT@orcl_11gR2> commit
      2  /
    
    Commit complete.
    
    SCOTT@orcl_11gR2> variable user_input varchar2(100)
    SCOTT@orcl_11gR2> exec :user_input := 'this%that'
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> select * from test_tab
      2  where  contains
      3             (columnName,
      4              :user_input || ' or (' ||
      5              replace (:user_input, '%',' and ') || ')'
      6             ) > 0
      7  /
    
    COLUMNNAME
    --------------------------------------------------------------------------------
    thisthat
    thisOTHERthat
    this other text here that
    
    3 rows selected.
    
  • Search for documents with attachments

    Is their way to update a search query to return only documents HTML attachments?

    I think that using the dRendition1 parameter you would get content items according to your requirement for specific attachments.

    For example: to list all content items with attachments that have been added to the option "Add attachments" contained actions, use the following query:

    QueryText = dRendition1 'Z '.

    T - gives a list of all the jpg thumbnails

    G - would give the list of all gif thumbnails

    P - would give the list of all thumbnails of png

    X would give attach list XML all elements (those who have threads)

    So, by changing the value of rendition1 parameter, you can get the search to return only elements that have some form of attachments.

    For example: http://hostname/ReportServer: port/cs/idcplg? IdcService = GET_SEARCH_RESULTS & QueryText = dRendition1 'Z' & SortField = dInDate & SortOrder = Desc & ResultCount = 100

    I hope this helps.

    Thank you

    Srinath

  • Text Wrap, image with white background

    CS4 Mac Tiger - when using Quark, I am able to import an image (see image of Zebra head) with a white background (effectively a cut without a route clipping) and tell Quark to the text "wrapping" of the image regardless of the white background. In InDesign, seems to only be able to do if I actually change the shape of the box to resemble the image of the picture. Am I missing something, or this function does not exist in InDesign

    PS. bear in mind I do not always come the image and the design of magazines too Photoshopping does not allow date limit.Picture 1.png

    ID has some pretty sophisticated packaging options. Go to object > Clipping Path > Options... If you do not have a channel alpha in the image file, or a clipping path, choose edge detection and play with the sliders. A string created in Photoshop, where it is relatively easy to isolate the background will work best, however, 99% of the time, or by removing the background entirely if it is an option.

  • 80244018 while searching for updates with Windows Update

    I'm working on Vista Home Premium SP2 Polish version.
    Lately, I noticed that I am not in my Windows Update system update. I've been unable to update my Windows Defender definitions. I was meeting a mistake and info on aid offers me to erase temporary files folders. I did exactly as he wrote it. But it did not work. Instead, now I can't even check updates, because when I stopped to do so, error 80244018 appears. A few days ago, everything was ok. I even tried to "restore system" (I don't know how it is in English - the system option it comes down to the previously written statement) - without help, cause the oldest back point I had was 8 months ago - and yet, the problem occurred.

    And besides - I do not know how and why (I noticed after awhile, and other people were using my computer) my catalog of Program Files default changed from system disk c: d: disk, I mean, whenever I have install something that installs Program Files, it wants to install it on d: how to return to c :?

    Personal data backup (which none should be considered 100% reliable at this point) then format the HARD disk and do a clean install of Windows.  Please note that a repair installation (upgrade AKA on-site) won't fix this!

    HOW to do a clean install of Vista: section "If you want to reinstall Windows Vista by running a new installation...". "of http://windows.microsoft.com/en-us/windows-vista/Installing-and-reinstalling-Windows-Vista#section_3

    Once installed the clean, you will have the equivalent of a "new computer" in order to take care of everything on the next page before connecting the machine to the internet or one local network (i.e. other computers) otherwise and before using a flash drive or the SD card that is not brand new, or has not been freshly formatted:

    4 steps to help protect your new computer before going online
         http://www.Microsoft.com/security/pypc.aspx

    NB: No matter what Norton or McAfee free trial which is preinstalled on the computer when you bought will be reinstalled (but invalid) when Windows is reinstalled. You MUST uninstall the trial for free and download/run the removal tool before installing updates, Windows Service Packs, or updates IE and before installing your new anti-virus application (which will require WinXP SP3 must be installed).

    Norton Removal Tool
         FTP://ftp.Symantec.com/public/english_us_canada/removal_tools/Norton_Removal_Tool.exe

    McAfee Consumer product removal tool
         http://download.McAfee.com/Products/Licensed/cust_support_patches/MCPR.exe

    See also:

    Measures to help prevent spyware
    http://www.Microsoft.com/security/spyware/prevent.aspx

    Measures to help prevent computer worms
    http://www.Microsoft.com/security/worms/prevent.aspx

    Avoid fake security software!
    http://www.Microsoft.com/security/antivirus/rogue.aspx

    If these procedures look too complex - and there is no shame in admitting this isn't your cup of tea - take the machine to a local computer, reputable and independent repair shop.

    On others using your computer:

    1. you should have your own password protected user account that nobody else uses. Your account may have administrator privileges.

    2. the other members of the family should have their own, protected by password account user without administrator privileges.

    3. anyone else using your computer must use a specially created with minimal privileges guest account.

    4. I strongly recommend installing & using Windows SteadyState on your computer to avoid such problems in the future.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

Maybe you are looking for