[JS] [CS4] Search for Resized images

Hi scripters,.

We follow a very strict guidelines based on a form of layout. One of these guidelines is text all executives are always allowed on margin rules never resize. But still some Apple hard staff members. I'm looking for so a way to check for a block of text resized throughout the documents a book so if have found the name of number and document page where it was found and then report it in an alert or something. Someone has an idea? Thanks in advance...

-Horse

Try this simplified version

Who treats the layers

// Script by Trevor to show Bad Text Frames http://forums.adobe.com/thread/1089938
// Open JS console on ESTK
#target indesign
#targetengine Trevor
app.doScript("main()", ScriptLanguage.javascript, undefined, UndoModes.FAST_ENTIRE_SCRIPT, "Highlight Bad Text Frames");

function main()
{
var  doc = app.activeDocument,
        pl = doc.pages.length,
        badTextFrames = [],  textFramesDetails = [],
        myXMLViewPreferences = doc.xmlViewPreferences;
        myXMLViewPreferences.showAttributes = true;
        myXMLViewPreferences.showStructure = true;
        myXMLViewPreferences.showTaggedFrames = true;

    var pm=doc.pages[0].marginPreferences,
    pmTop = pm.top, pmBot = pm.bottom, pmLeft = pm.left, pmRight = pm.right
    pb = doc.pages[0].bounds,
    tf = doc.layers[0].textFrames, // Change to correct layer
    tfl = tf.length,
    pb[0] += pmTop, pb[1] += pmLeft, pb[2] -= pmBot, pb[3] -= pmRight;

    while (tfl--)
        {
            var tfGeo = tf[tfl].geometricBounds;
            if (tfGeo.toString() != pb.toString())
                {
                    badTextFrames.push(tf[tfl]);
                 }
         }

var btfl = badTextFrames.length;
while (btfl--)
    {
        $.writeln(textFramesDetails[btfl] + " is BAD (:-(");
        xmlTag (badTextFrames[btfl]); // Delete this line if you don't want to tag
     }

function xmlTag(objectToTag)
      {
        if (objectToTag.associatedXMLElement==null) xmlFrame = doc.xmlElements [0].xmlElements.add ("Bad_Frame" , objectToTag);
        else
           {
               objectToTag.associatedXMLElement.untag();
               xmlFrame =doc.xmlElements [0].xmlElements.add ("Bad_Frame" , objectToTag);
            }
        }
}

Tags: InDesign

Similar Questions

  • Search for vector images

    I have connected today and saw the new site of stock look and was horrified to see that I can specify is no longer I want to search for vector images.

    Has anyone found how do it now?

    If not it's horrible, I have to sift through the results more as much as I should to find what I want and be checking on the details page file formats to make sure it is the vector.

    OK I found it. You must click on the bit next to the search field settings icon and then there's a section called ' subcategory and under that, there is a button for the vectors. " Not particularly intuitive and certainly not as easy it was on the first page.

    Please correct Adobe.

    See you soon

  • HOW to search for an image?

    How to use an image to search for something or someone?

    Google images will allow you to do. Go to images.Google.com and drag the image you want to use in the search box.

  • Messages - search for missing images.

    After update I've updated my 6s more IOS 10 public beta to the latest General, 10.0.1, the image search function went into messages. I've been using since the previous public betas and now seemed strangely missing. I went to the support page and found this image in messages search is not available in all countries, but did not mention who is banned. I live in Hong Kong and I see no reason why it has been subscribed, that we have no rules of censorship muxh here. Anyone else residing in Hong Kong also have the same problem?

    I did the usual restart and reinstalls. No chance I know also that I can just download an equivalent application on the App Store for messages, but it's weird to see a function removed like that on my phone.

    How can I get my deleted messages NTSB

  • How to search for an image Adobe Stock based on the number of files Adobe Stock?

    Before I signed up for Adobe Stock, I took screenshots of the pictures that I wanted to buy. These plans include the official file Adobe Stock number. Now that I have a subscription, I want to buy these images. But it doesn't seem to be an option to search based on the file number. How can I get the image I want, by file number, without wasting hours of research of individual images through keywords?

    Simply type the Stock number in the search. Be sure to have audited as well appropriate file types.

  • Need a script for resizing images of Portrait and landscape without having to first sort

    OK I downloaded this great script: Image Processor Pro to create multiple batches in a single shot.

    http://blogs.Adobe.com/jkost/2015/06/image-processor-Pro-for-Photoshop-CC-2015.html

    It's great, but I still have to run a tiny drop to resize the files exactly 374 x 498 and 276 x 385, after I cut them it will be "worthy", but this was not accurate.

    Here is my method:

    I have original TIFF that I have edited, original images is usually square. (sometimes they are not, and I wish I had a solution for that as well, but one thing at a time)

    Since these TIFF I execute the script to save to 4 different folders:

    Resize to 2000 x 2000 and rename to add sizing file name

    Resize to 500 x 500 and rename to add sizing file name

    Trim & resize to 374 x 498 and rename to add sizing file name

    Trim & resize to 276 x 385 and rename to add sizing file name

    Here's what it looks like:

    Screenshot2000x2000Script.JPG

    ScreenshotTrimScript.JPG

    Here's what it looks like once I launch my image processor:

    FinalResult.JPG

    and here is an example of the files in the folder XS with dimensions:

    XS.JPG

    Which is great! But now I have to go to sort my pictures SM and XS of landscape & Portrait and THEN run another drop on them to get them to fit exactly 374 x 498 and 276 x 385.

    SO please tell me there is a better way! I'm almost there!

    If the version of Photoshop supports done condition and the condition is a conditional action as you can get without learing scripting. The problem, actions must be in the same action game and the game cannot be renamed.  Here action must be used after Image processor makes pro then the image resizing made tho conditional actions can add the canvas so that the document of the exact size.

  • How can I search for ALL photos on my hard drive, windows 8?

    I had windows xp and all I had to do was to go to research and select the photos and ALL photos on my computer would come. How can I do this with windows 8?

    If you open your hard drive in the file Explorer, you can use the wildcard character * to search for something as *.jpg to find all JPEG images.  Doing this would look like with that by typing in the search box:

    But you can find all the images, even if they are other types (.bmp or .png or .gif).  To do this, use the search toolbar that appears at the top.  Use the type menu and tell him you want to search for all images.  It is quite similar to XP, except you get more choice.

  • AppleScript to resize images in Photoshop CS4 will not work in CS6 - help!

    Hi people.

    I am new to this lark script and hope someone can help...

    Our Nigel, unfortunately is no longer with us, wrote a cunning to convert script photographs large size smaller using Photoshop CS4.

    The workflow is the following:

    You open Photoshop

    You have two files, one with the original files and the other which is empty.

    You drag the folder with the original files on the .app and he asks a destination folder (tell you him to use the empty folder).

    The images are then opened one by one, resized, some tape removed and are then registered to the empty folder (formerly).

    Lovely jubbly.

    The problem is when you try to use this app with Photoshop CS6 - it fails at the point of backup files in the new folder which gives this error:

    Adobe Photoshop CS6 has been an error: "unable to get document"075.jpg". (- 1728)

    I fiddled with the script a little and it seems don't not like the section "with options" command 'Save document' (it works fine if I completely remove the fuse "with options" - but I need than LZW compression).  I have trawled through a few similar questions on these forums, but have not been able to track down the problem. It probably doesn't help that I'm not a programmer (just try to translate as I oppose using the Photoshop CS6 AppleScript reference guide).

    Did everyone there knows the problem please?

    The script is below.

    on Open ()pourla)

    set theDestination of (choose folder with guest 'set the destination for the files processed...) ") as text

    tell application "Finder"

    set isContainer to fake

    set theItem to agenda 1 of pourla as string

    if last character of theItem is ":" then

    set list of files to files of all of the content of agenda 1 of pourla

    on the other

    set list of files to pourla

    end if

    Repeat with x in list of files

    set Dittos to x as texte

    set theFileName to name of x as texte

    set outFilePath to theDestination & theFileName

    if theFileName ends by ".db" then

      --

    on the other

    tell application "Adobe Photoshop CS6"

    -I was skilled enough change the foregoing of "Adobe Photoshop CS4".

    set units of the rule of parameters to units of mm

      Open alias theFile

    set theWidth to width of document theFileName

    set theHeight to height of document theFileName

    if theWidth > theHeight then

    Resize image document theFileName width 65 resolution 400 resample method bicubic

    on the other

    Resize image document theFileName height 65 resolution 400 resample method bicubic

    end if

    convert document theFileName profile ' Coated FOGRA39 (ISO 12647-2: 2004) " intent perceptive with blackpoint compensation without dithering .

    { adjust layer of art 'History' of the document theFileName with curves with options { }class:curves points of the curve: {{0, 0}, {128, 128}, {243, 255}}}

    { Save document theFileName in outFilePath like TIFF adding tiny extension with options { }byte order:Mac OS embed the color profile:fake image compression:LZW} without copy

    close document 1 saving no

    fin say

    fin if

    -display outFilePath dialog box

    fin Repeat

    fin say

    end open

    file name

    Try this.

    game of myOptions to {class:TIFF to save options, the byte order:Mac OS, embed the color profile:false, image compression:LZW}

    Save document theFileName in outFilePath as TIFF with options myOptions by adding the extension lowercase without copy

    HTH.

  • When I right click on an image, I can't see the option "search Google for this image. How can I get that back?

    I don't know what that I have maybe changed, but right-click on any image, gave me the option in the Google search menu for the image. This option is gone.

    This is not a built-in feature. Have you used any of these extensions:

    You might first check the addons page to ensure that it is not disabled. Either:

    • CTRL + SHIFT + a
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click Extensions. On the right side, off the cluster of extensions at the bottom.

    If it is enabled, it could be a problem with some of the code in the extension is not compatible with Firefox 40, or one other extension it bumping from the context menu.

  • I just updated to Firefox 23.0 for Macs and installed updates for Flash and Silverlight; Now Google 'search tools' & find image will not work correctly. Suggestions?

    When I click on 'search tools', options are no longer displayed (for example, the tool that allows a search of limited date or search for videos of different lengths). I happened to have a search page open before the update and drop-down menus to search tools always appear on this page, but if I click on it, the menu drops down, so I can't change the options. When I do an image search, the results page shows only 20 or if the images and the rest of the results appear only as gray rectangles with/without any image. Search tools work normally in other browsers, I installed it, but Firefox is my default browser (and I'm happy with that), so I want to fix the problem. I don't know if it is associated with the updates, I did yesterday, but it's the only thing I can think of that's changed. Before that, the search tools have been working properly.

    Hello

    Many issues of the site can be caused by corrupted cookies or cache. To try to solve these problems, the first step is to clear cookies and cache.
    Note: This will be you temporarily disconnect all sites, you're connected to.
    To clear the cache and cookies to do the following:

    1. Go to Firefox > history > clear recent history or (if no Firefox button is displayed) go to tools > clear recent history.
    2. Under "Time range to clear", select "all".
    3. Now, click the arrow next to details to toggle the active details list.
    4. In the list of details, see the Cache and Cookies and uncheck everything.
    5. Now click the clear now button.

    More information can be found in article to clear your cache, history, and other personal information in Firefox .

    This solve your problems? Please report to us!

    Thank you.

  • looking for resizer in xp for windows power toy image 7, 64 bits

    looking for resizer in xp for windows power toy image 7, 64 bits

    Try this freebie:

    (It's always a good idea to create a system restore point before installing software or updates)

     I think you'll like this one. It is very close to the old XP resizer!
     
    Image Resizer Powertoy Clone for Windows 64-bit-
     
    * I downloaded it, and it worked for me. But, proceed at your own risk *.
    Be sure to back up first!
  • Is there an API for resizing the image "smoothly"?

    To get thumbnails of images, I use EncodedImage.scaleImage32 (). It works Ok, but when I open the native image (from the camera app) Viewer I see the difference in quality - thumbnails Viewer native look nice (smooth, anti-aliasing), while mine are a little ugly. It seems that native Viewer resizes images using a filter (bicubic or sth like this). How can I do the same? Is there some API for resizing 'smooth '?

    In 5.0, but it does not work with images.

    Nothing native pre - 5.0, you must implement your own.

  • 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

  • Help with solution of Liz Castro iBooks bug when resizing images in epub for iPad

    Hello world.

    I create an epub for iPad with small images that will expand when they are tapped. I read Liz Castro book and blog article and learned the bug with iBooks and the solution, which, like an HTML novice, I found it difficult to understand.  It took me some time to make it work, but I just wanted to share my (imperfect) progress for other laity or secular and ask for help!

    I just add this in my template.css

    {div. Group}
    Width: 50%! important;
    }
    img {width: 100%;}

    and in each of my html chapters where there is an image, I removed the img src reference that has been automatically generated by Indesign and added this...

    < div class = "group" >
    < img src = "exampleimage.jpeg" alt = "This is an example" / > "
    < / div >

    I rezipped my files, transferred to my iPad, and the images appear small and expand when double-tapped. Fantastic! Thanks to Liz Castro. It is a bigger step.

    But it is not perfect. I would like my image to be aligned to the centre and to ensure that there is some space between the text and the image. My images are now aligned to the left, and there is no space between them and the text preceding and following them, so that it looks like a mess on the page. Before I changed the code it worked well, after I changed it it does not work. When I initially exported the InDesign file, on the Image taitouche set the spacing to the Center and 2ems has added to the image and check the box to Insert a Page break before and after a page break.

    To remedy this, I added the following to the div.group in css

    text-align: center;

    top of the margin: 2em;

    margin-bottom: 2em;

    When I converted it to an epub I've seen there is no center of the image, but there was a margin at the top and bottom. While the file opens in the problem of Sigil that it won't transfer to iBooks on the iPad, which I think means that there is a coding error.


    Is anyone know how can I Center of the image and add some space between him and the text?

    Any help would be highly appreciated.

    Some things to consider:

    1 centering and space above and below your div can be done in CSS with:

    {div. Group}
    Width: 50%! important;

    top of the margin: 1.0em.

    margin-bottom: 1.0em;

    text-align: center ;}

    There might be other ways improve to achieve this. I am not an expert in CSS or HTML; I know that what has worked for me in previous projects.

    2. in iBooks, there is a bug (or "feature") which causes the iBooks to ignore text-align for some items (such as

    ) if iBooks preferences are set to full Justification = WE. Instead of being centered, these items will be left-aligned (or perhaps justified? I have not tested). This is the default setting, so most users likely to leave like that. (the elements are not affected by this bug.)

    This is detailed in one of the blog posts from Liz Castro and also on the blog of Walt Shiel:

    http://www.pigsgourdsandwikis.com/2010/06/beating-iBooks-bugs.html

    http://waltshiel.com/2010/06/23/one-solution-to-iBooks-1-1-centering-problem/

    One of them is to wrap the text inside such an element in the empty tags .

    3. I don't know what is your target audience, but keep in mind that iBooks is far behind Amazon and BN.com in terms of volume sales. Kindle and the Nook do not support resizing images (again, in any case), so unless your book depends on this photo processing to deliver his message, you could put a lot of time and effort in a feature that few readers (yet, cases) can take advantage of.

    4. If you use Twitter, you can follow the hashtag #eprdctn - it is used by a small community of designers in the ebook to exchange information on the evolving ebook design world.

    5. other good sources of information:

    http://ebookarchitects.com/

    http://www.kindleformatting.com/ (I know it is not related to iBooks, but it is full of good info)

  • Resize image code does not work for some jpg files

    Hello. I use the code to resize images and store them on the server below. However, with some jpg files, resizing produces a reddish tint on the picture. Any ideas of what could be the cause? Here's the original image: http://www.unctv.org/tWxkBbq_10M6wKRRL/PNCWWD01.jpg and here of what happened later: http://www.unctv.org/tWxkBbq_10M6wKRRL/PABDFC01__1289231445291.jpg
    Photoshop CS5 is used to produce the input JPG for this app. thank you.
    public BufferedImage resizeVeryHigh(InputStream inputStream, File resizedFile) throws IOException {
      BufferedImage bufferedImage = null;
      try {
          Image newImage = ImageIO.read(inputStream);
          int newWidth = (int)this.targetWidth;
          ImageIcon imageIcon = new ImageIcon(newImage);
          Image image = imageIcon.getImage();
          Image resizedImage = null;
    
          int iWidth = image.getWidth(null);
          int iHeight = image.getHeight(null);
    
          // This code ensures that all the pixels in the image are loaded.
          Image temp = new ImageIcon(resizedImage).getImage();
    
          // Create the buffered image.
          bufferedImage = new BufferedImage(temp.getWidth(null), temp.getHeight(null), BufferedImage.TYPE_INT_RGB);
    
          // Copy image to buffered image.
          Graphics g = bufferedImage.createGraphics();
    
          // Clear background and paint the image.
          g.setColor(Color.white);
          g.fillRect(0, 0, temp.getWidth(null), temp.getHeight(null));
          g.drawImage(temp, 0, 0, null);
          g.dispose();
    
          // Encodes image as a JPEG data stream
          FileOutputStream out = new FileOutputStream(resizedFile);
          JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
          JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bufferedImage);
          param.setQuality(1.0f, true);
          encoder.setJPEGEncodeParam(param);
          encoder.encode(bufferedImage);
      }
      catch (Exception e) {
            this.error = e.getMessage();
      }
          return bufferedImage;
    }
    Published by: oneworld95 on November 8, 2010 11:34

    I don't know anything about the jpeg encoder, but I do not see the code which makes no sense to me:

    Image resizedImage = null;
    
    int iWidth = image.getWidth(null);
    int iHeight = image.getHeight(null);
    
    // This code ensures that all the pixels in the image are loaded.
    Image temp = new ImageIcon(resizedImage).getImage();
    

    What is so as to create an ImageIcon from an image zero?

    int newWidth = (int)this.targetWidth;
    

    I don't see where actually use you this variable, then how the image does get resized?

    To learn more create a [url http://sscce.org] NBS, which illustrates the incorrect behavior and maybe someone will take a look.

Maybe you are looking for