Pixelation png in the document and the passage to a specific layer

I am wanting a JavaScript which will focus on the active document and find images (.png files) and rasterize each graph for RGB 150 ppi.

Then move the files to an already existing in the name of the document layer: 1 data

The 1st layer of data is inside a layer more in the document if it makes a difference.

Can anyone advise as to whether it's possible to do something?

Any help would be greatly appreciated!

Windows 7 64-bit and Illustrator CS4

Your script should find a way to pass the rasterItems permit in your layer.

var myLayer = myDoc.layers.getByName('1st Data');
for ( var i=0; i < myDoc.rasterItems.length ; i++ )
{
  var thisItem = myDoc.rasterItems[i];
  thisItem.move(myLayer, ElementPlacement.PLACEATEND);
}

Tags: Illustrator

Similar Questions

  • Export PNG with the correct name, for each layer, script file frame foreach

    Hello guys,.

    I am trying to find a script that exports each separately from the layer in PNG, for each image, with the correct name. By example, if the layer is named snail and lies in a forest of group name and is like 6, export this layer as a PNG named forest.snail.06.png (recursion if possible) and this for each layer, for each image...

    I found a software named Layerex, they speak here about layers export Flash | Global Facilitation network

    But I could not find... If you guys know how to do, it would be so awesome...

    Take care

    Simon

    Using jsfl.

  • error code while trying to open the photos include JPEG and BMP files: C:\Documents and Settings\Jim\My Documents\My Pictures\img005.jpg is not a valid Win32 application

    I withdrew just a very good old scanner which apparently couldn't handle the recent installation of Windows XP Service Pack 2 or 3, and went with a rather nice Epson V330 Photo.   I uninstalled all old software, want my images to JPEG and BMP to open in Adobe PhotoShop Elements 8 for editing and development.  It is my job and my hobby and means of photography technique.  I reinstalled the scanner by removing the Arcsoft software with which it has been furnished, which is not really suitable for what I do.

    Now, I can not open JPEG in PhotoShop Elements 8.0 and here I get the error message:

    C:\Documents and Settings\Jim\My Documents\My Pictures\img005.jpg is not a valid Win32 application

    It seems to have something to do with the hack with the folder options after that I spilled the Arcsoft as any kind of primary program.

    BUT I have to open JPEG files, and it MUST be in PhotoShop Elements 8, I bought.  I can see, overview and could open to the limited capacity of some of the ArcSoft stuff, but I'm not interested in distance using that.

    How can I get these files/folders to open in something useful?  I was able to create JPEG on the new scanner, but now my computer opens not those or 'old' of my files.   See the warning message.

    I'm trying to uninstall all the software now and do not reinstall the stuff of Arcsoft, which would not be useful for me in any setting.   But I do not think that this will be the solution, as my computer can not open these key files in PhotoShop Elements 8.0.

    I think it's something I did during the passage, but I did system restore and NO RESULT.  NONE!

    If you open a directory of photos and go to the thumbnail view in Explorer, they display the thumbnails correctly?
     
    I think that you need to reset the file association for programs that open the image files.  Try a right-click on a jpeg file and go to properties and click on the button to edit, and then designate PS elements 8 as the top program open with, and then see if it works very well.
     
    You can also check the settings in the registry for the types of image files.  Seewww.oehelp.com/noimg.aspx , which deals with a related issue.
     
    Steve
     

    I withdrew just a very good old scanner which apparently couldn't handle the recent installation of Windows XP Service Pack 2 or 3, and went with a rather nice Epson V330 Photo.   I uninstalled all old software, want my images to JPEG and BMP to open in Adobe PhotoShop Elements 8 for editing and development.  It is my job and my hobby and means of photography technique.  I reinstalled the scanner by removing the Arcsoft software with which it has been furnished, which is not really suitable for what I do.

    Now, I can not open JPEG in PhotoShop Elements 8.0 and here I get the error message:

    C:\Documents and Settings\Jim\My Documents\My Pictures\img005.jpg is not a valid Win32 application

    It seems to have something to do with the hack with the folder options after that I spilled the Arcsoft as any kind of primary program.

    BUT I have to open JPEG files, and it MUST be in PhotoShop Elements 8, I bought.  I can see, overview and could open to the limited capacity of some of the ArcSoft stuff, but I'm not interested in distance using that.

    How can I get these files/folders to open in something useful?  I was able to create JPEG on the new scanner, but now my computer opens not those or 'old' of my files.   See the warning message.

    I'm trying to uninstall all the software now and do not reinstall the stuff of Arcsoft, which would not be useful for me in any setting.   But I do not think that this will be the solution, as my computer can not open these key files in PhotoShop Elements 8.0.

    I think it's something I did during the passage, but I did system restore and NO RESULT.  NONE!

  • How to get the RGB value of a pixel in a psd document using scripting Photoshop

    Hi, guys!    Does anyone know how to get the RGB value of a pixel in a psd document using scripts in Photoshop?  I myself have missed for a long time and could not resolve. I am very happy to hear your voice as soon as possible!

    Here is an example...

    var originalUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    var doc = activeDocument;
    var Colour1 = GetHexColour(eyeDropperRGB(1,doc.height-1));
    var Colour2 = GetHexColour(eyeDropperRGB(20,doc.height-5));
    var Colour3 = GetHexColour(eyeDropperRGB(40,doc.height-14));
    alert("Colour 1 = " +Colour1 + "\rColour 2 = " +Colour2 + "\rColour 3 = " +Colour3);
    var decColour = eyeDropperRGB(40,doc.height-14);
    alert("Red = " +decColour[0] + "\rGreen = " +decColour[1] + "\rBlue = " +decColour[2]);
    app.preferences.rulerUnits = originalUnits;
    function GetHexColour(reqHex){
    var out='';
    for(No in colours = reqHex){
     out = out.concat(zeroPad(d2h(reqHex[No]),2));
     }
    return out;
    };
    function eyeDropperRGB(x,y) {
     var x2 = x + 1;
     var y2 = y + 1;
     var out = new Array(3);
     activeDocument.selection.select([[x,y], [x2,y], [x2,y2], [x, y2]], SelectionType.REPLACE, 0, false);
     for(ch in list = ["Red", "Green", "Blue"]) {
     histogram = activeDocument.channels[list[ch]].histogram;
      for (i = 0; i <= 255; i++) {
       if (histogram[i]) {
        out[ch] = i;
        break;
       }
      }
     }
      return out;
    };
    function d2h(d) {return d.toString(16);}
    function zeroPad(n, s) {
       n = n.toString();
       while (n.length < s)  n = '0' + n;
       return n;
    };
    
  • How to get documents and data to the cloud on my Mac desktop?

    After the upgrade to Sierra all my data (documents and desktop) have been transferred to Icloud. I absolutely not want all my data on another server costs me more money. How do I lose all my data safely back on my Mac, without anything? I'm quite t... o... that the decisions of this importance are make with a single click (or without?). Preferably, I do not want to export every file (of the thousands...) by hand, but just change things back to where it was before.

    Thanks in advance!

    Documents are also in your folder on the drive on your Mac iCloud.

    Just disable iCloud drive in iCloud preferences.

    Then go icloud.com and connect, then you remove the files on disc to iCloud.

    8. how to disable iCloud drive?

    To disable iCloud Drive on your iOS device, go to settings > iCloud > iCloud driveand on your Mac, go to the Apple menu > System Preferences > iCloud. If you disable iCloud drive, so you you will manage your files locally, documents are not synchronized or updated your iOS iOS devices 8 or OS X Yosemite or iCloud.com.

    http://www.iphonehacks.com/2015/01/icloud-drive-Guide.html

  • Disable the iCloud macOS Sierra while retaining Documents and Desktop on Macbook

    Hello

    I recently updated my Mac to macOS Sierra and during the installation process I accidentally left the synchronization "Desktop and Documents" on iCloud drive selected. He transferred some of my documents to the iCloud drive and then not others because I don't have enough storage iCloud and record my 'normal' documents is now empty.

    I often work without an internet connection, so it is essential that I am able to access all my documents without cloud. I tried to uncheck the 'Jobs' and Documents and "iCloud Drive" in System Preferences, but it left my completely empty folder documents and deleted all the contents of my office.

    I panicked because all my documents had disappeared from my computer then I reactivated "iCloud drive" and it is now restore all documents that it removed from my computer.

    I was wondering what is the correct way to disable the iCloud drive and recover my documents and desktop in the 'normal' folder and not on iCloud drive without him remove again.

    No problem with iCloud drive, just my personal preference is to have saved it on my computer.

    Any help would be greatly appreciated!

    Thank you very much

    Whyllee

    This - see move the files to the drive iCloud for Mac, after you move the files to iCloud drive to the Mac, just clear reader iCloud to stop using it.

  • Why finder hide Documents and office files in the home directory of the user by activating iCloud drive? What about the behavior of Time Machine backup or third-party applications?

    I'm under MacOS Sierra. I am connected to my iCloud account. I activated the option Desktop and Documents, but I did NOT activate the option optimize Mac storage, because I wanted to make sure that all my files would be available locally, just in case, I would need to work without an internet connection.

    -J' noticed there now a menu iCloud in my sidebar in the Finder, with links to Documents and desktop.

    -J' also noticed that Documents is no longer presented in my favorites in my side bar of the Finder.

    -This last suggests that files saved in 'Documents' are not saved more on my HD... but only in iCloud, which isn't what I want.

    -Then, sailing in the Finder Macintosh HD/users / 'My account' /, I noticed that my Documents and desktop folders are more visible, as if these files are not saved in my home folder most. Which raises the question: where are My Documents and files on my HD, so they are still?

    -Using a shell session in the terminal and again navigate to/Users / 'My account' /, I noticed that my Documents and desktop folders are still there. Which suggest that records and records of office reside actually still in my home folder under users, but Finder actually hide it and present them as being stored in iCloud only disc. It's very confusing.

    This raises several questions:

    -In the first place, why Apple hide Documents and office files in the directory? Why not view these folders in iCloud and directory?

    -Whence the iCloud folder or drive, reside actually on my hard drive?

    -What time Machine. Is it still back up my document files and folders?

    -What games third-party app mirroring backup of My Documents files and folders? They still work properly? (I use Livedrive backup and Sugarsync for files mirrored across several macs).

    -How can I understand that Apple is doing with my folders and files? Some users might be happy with the iCloud drive concept, without worrying about how it works, but I don't take chances, and I want to keep a good understanding about the functioning of my system.

    Could someone explain what is exactly happening?

    With office and selected Documents, access to these files are now in the iCloud Drive, not in your home folder.

    My guess would be that they do not appear in your file because it would be confusing for many people to make them in two places.

    If you want in the Favorites, open iCloud Drive and drag them in the sidebar here.

    All about iCloud drive has been saved on your Mac. With the exception of the office and the Documents, they are in ~/Library/Mobile Documents. However, if you choose optimized storage, older documents are removed from your Mac. I don't know what is "old".

    ~/Documents and ~/desktop have new metadata indicating probably Finder does not display them in a Finder window, only in iCloud drive. They are not hidden in one of the normal methods of unix.

    I have not tested Time Machine or any other backup program. The folder still exist in your directory home, and they still have all the files, I don't think that changes anything.

  • How to remove documents and data in the iphone app podcast 6

    I know how to remove each podcast, but how do I remove "documents and data" in the application of podcast?  I have more than 4 GB of data and documents.

    I think I found a thread that is useful for you: https://origin-discussions-us.apple.com/thread/6822791?start=60 & tstart = 0

    Sonny3301 answer worked for me, «...» "(The steps are: 1) download the Battery Doctor app on your iPhone (it's the first one that appears in the search) (2) hit the"Junk"icon on the bottom and tap 'Clear Cache'." (3) repeat until your space becomes available. The people that I learned this technique of some other bulletin board said it took 10-15 tries; It took me + 30 attempts. The memory savings start small at first, then it starts to hit hundreds of MB at a time. It sounds crazy, I know, but I went to have less than 200 MB of free space for 3.6 GB. Great thing, it was my podcast app had only been hogging to 1 GB of data, so the app battery doctor found 2.6 Go elsewhere. Good luck to you all and you are welcome. »

  • After the update the new version cannot determine file downloads. In the eyes to determine the file, but download files go in C / documents and settings even

    After the update the new version cannot determine file downloads. In the eyes to determine the file, but download files go in C / documents and settings even if I chose another folder

    Hello, there is a general regression in firefox 27 allowing any files to upload directly to a root drive. Please try to create a subfolder (like D:\Downloads) and set as the default location for downloads...

    See also bug #958899.

  • How to lift a picture in a document to print it without printing the entire document, and when I ask to print at 400%, how to tell me how many pages there are, and what's on them

    I have a pix of a quilt in a document. I would like to print the page of the document to 400% to allow me to see the quilt better. When I put in my percent effects, it prints the entire document and will not allow me to move to other pages. He says his p1 1. I take a class to make this quilt. I need this pix for the class.

    Have you tried to open the image in a new tab via the context menu and a middle - click on the Image of the view and the zoom of the image (Ctrl +)?

  • How can I reduce the GB "documents and data" as stated on my sync?

    When I sync, I show 35 GB of "Documents and Data.  I'm almost at full capacity on Iphone 64 GB.

    To try to find "documents and data", I removed all Sync Photos, deleted the pictures in "Camera roll", removed the check mark on "synchronize books", (even if not), deleted all the 'music' of sync.

    I'm still 35 GB of "documents and data!

    I removed some rarely used applications.

    I went to settings icloud and removed what little I could find.

    I used the setting app and reviewed the storage on the iphone, I don't see anything extraordinary.

    I feel like there is something in the background, I can't find a job.

    When DandD or other who get big there is usually a damaged system or approx. to isolate the individual application is difficult. Try to do a restore from backup in iTunes. If that doesn't help, try a restore as New. Unfortunately, a restore as new is a pain like all settings and applications will need to be configured from scratch.

    https://support.Apple.com/en-us/HT201252

  • I've recently upgraded to El Capitan - biggest problem is timing removed all the entries in my previous ical. Any ideas how I can track down the file containing these essential documents and install in the new program?

    I've recently upgraded to El Capitan - biggest problem is timing removed all the entries in my previous ical. Any ideas how I can track down the file containing these essential documents and install in the new program?

    All calendars are enabled in the sidebar?

  • Documents and data with all the storage on iPhone

    A few days ago I tried to send an email with a large attachment. However, it has not been send so I deleted my account from my iPhone. Once I did, I got a message saying that almost all of my storage has been exhausted. I checked to see and I have about 5 GB of available 64 GB. I connected my iPhone to my computer to check which took all this space and 45 GB of my space is being taken up by the Documents and data. I deleted the old messages, imported pictures to my computer and erased, erase my history on safari, check on iCloud, and allows to remove most of my apps that I have read that the removing applications and later re - download. I've also updated to iOS 9.3. It helped very little. Documents and data is now only 43 GB instead of 45 GB. Before that happened, I got about 50 GB of free and now I just 5 GB free after it happened.

    What else can I do to clear more of Documents and data? Should I restore my iPhone to one of the backups that I recorded? Should I take my iPhone at the Apple Store because it happened so suddenly and randomly?

    On the phone, go to settings App > general > storage & use iCloud > manage storage (in STORAGE). Who will provide a list of what applications use data and in what quantity. Tapping on the app with you give the amount of data, the application contains (less himself) and in most cases the ability to delete the application, if you wish. You will not necessarily have to delete the app.

    Once you have completed all the actions, try a forced reboot: hold down the House and on the buttons until the unit turns off. Ignore the cursor off if it appears. Once completed, if it does not start on it own, turn off power with the key On. In some cases, it also contributes to double click the Home button and close all applications before restarting.

    Also, actually iTunes sync erases some of this possibility.

    One last thing, if you have installed whatsapp, there is a known problem cases that it runs in fairly large amount of data storage.

  • Cannot attach email word documents get the message 'enable documents and data '.

    Cannot attach a word document to an email. I get the message 'Enable documents and data' and it says that it is disabled. Don't enter iCloud setting there is no Document and data parameter. Is it because I use a free version of work?

    Whether the app is the word document?

    You can view the document word on the iPad?

  • How to organize the documents and PDFs on a mini iPad 2

    Hello! I am new to Apple and I'm happy to have a mini iPad 2 and iPhone 4 s. I used to be a windows user and I am more familiar on how to organize my documents and pdf files. Can someone help me on how can I transfer some of my documents and my pdf files in my mini iPad 2 and used it? This will be very useful for me. Thank you

    Read here: http://help.apple.com/ipad/9/#/iPad5ecae3c6

    and here

    Sync a PDF file. On a Mac, add the PDF file to iBooks for OS X, open iTunes, select the PDF, and then synchronize. In iTunes on your Windows computer, choose file > Add to library, select the PDF, and then synchronize. See iTunes help for more information on synchronization.

Maybe you are looking for