Lot 2 images combine watermarks on opposite sides to eliminate watermarks and save them to a new folder - how?

I have 2 folders of images.

1 folder has pictures with a watermark on the lower left side of the image and the other file contains images with a watermark on the right side down.

Images are named identically in each folder.

I never did before script and I won't edit, flatten and save images from 2000 to hand.

There must be an effective way to achieve this.

Any help is very appreciated.

Thank you!

I brought the top down a little, it is now 4/5th removed from the top.

High Var = activeDocument.height-((activeDocument.height/5)*4);

The script again...

#target photoshop
function main(){
var dlg=
"dialog{text:'Script Interface',bounds:[100,100,650,290],"+
"panel0:Panel{bounds:[10,10,540,180] , text:'' ,properties:{borderStyle:'etched',su1PanelCoordinates:true},"+
"statictext0:StaticText{bounds:[190,10,360,27] , text:'Merge Files' ,properties:{scrolling:undefined,multiline:undefined}},"+
"panel1:Panel{bounds:[10,30,520,130] , text:'' ,properties:{borderStyle:'etched',su1PanelCoordinates:true},"+
"statictext1:StaticText{bounds:[10,10,70,30] , text:'Folder A' ,properties:{scrolling:undefined,multiline:undefined}},"+
"foldera:EditText{bounds:[80,10,430,30] , text:'' ,properties:{multiline:false,noecho:false,readonly:false}},"+
"Browse1:Button{bounds:[440,10,501,31] , text:'<<' },"+
"statictext2:StaticText{bounds:[10,40,70,57] , text:'Folder B' ,properties:{scrolling:undefined,multiline:undefined}},"+
"folderb:EditText{bounds:[80,40,430,60] , text:'' ,properties:{multiline:false,noecho:false,readonly:false}},"+
"Browse2:Button{bounds:[440,40,500,61] , text:'<<' },"+
"statictext3:StaticText{bounds:[10,70,70,87] , text:'Output' ,properties:{scrolling:undefined,multiline:undefined}},"+
"folderc:EditText{bounds:[80,70,430,90] , text:'' ,properties:{multiline:false,noecho:false,readonly:false}},"+
"Browse3:Button{bounds:[440,70,501,91] , text:'>>' }},"+
"Process:Button{bounds:[10,140,260,161] , text:'Process' },"+
"button4:Button{bounds:[270,140,520,161] , text:'Cancel' }}};"
var win = new Window(dlg,'Merge Files');
win.center();
win.panel0.panel1.foldera.enabled=false;
win.panel0.panel1.folderb.enabled=false;
win.panel0.panel1.folderc.enabled=false;
win.panel0.panel1.Browse1.onClick = function() {
 inputFolder1 = Folder.selectDialog("Please select the folder with Files A to process");
 if(inputFolder1 !=null){
  win.panel0.panel1.foldera.text =  decodeURI(inputFolder1.fsName);
  }
}
win.panel0.panel1.Browse2.onClick = function() {
 inputFolder2 = Folder.selectDialog("Please select the folder with Files B to process");
 if(inputFolder2 !=null){
  win.panel0.panel1.folderb.text =  decodeURI(inputFolder2.fsName);
  }
}
win.panel0.panel1.Browse3.onClick = function() {
 outputFolder = Folder.selectDialog("Please select the output folder");
 if(outputFolder !=null){
  win.panel0.panel1.folderc.text =  decodeURI(outputFolder.fsName);
  }
}
win.panel0.Process.onClick = function(){
 if(win.panel0.panel1.foldera.text == ''){
  alert("Folder A has not been selected!");
  return;
  }
 if(win.panel0.panel1.folderb.text == ''){
  alert("Folder B has not been selected!");
  return;
  }
 if(win.panel0.panel1.folderc.text == ''){
  alert("Output folder has not been selected!");
  return;
  }
 win.close(1);
processDocuments();
}
win.show();
function processDocuments(){
var fileListA = inputFolder1.getFiles(/\.(jpg|tif|psd|png)$/i);
for (var a in fileListA){
var file = fileListA[a];
var fileb = File(inputFolder2+"/"+file.name);
if(!fileb.exists) continue;
var saveFile = File(outputFolder+"/"+file.name.replace(/\.[^\.]+$/, '') +".jpg");
 open(file);
 placeFile(fileb);
 rasterLayer();
 var startRulerUnits = preferences.rulerUnits;
 preferences.rulerUnits = Units.PIXELS;
 var left = 0;
 var top = activeDocument.height-((activeDocument.height/5)*4);
 var right = activeDocument.width/3;
 var bottom = activeDocument.height;
 activeDocument.selection.select( [[left,top],[right,top],[right,bottom ],[left,bottom]]);
 activeDocument.selection.invert();
 activeDocument.selection.clear();
 SaveJPEG(saveFile, 8);
 app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
 app.preferences.rulerUnits = startRulerUnits;
 }
}
}
main();
function placeFile(placeFile) {
    var desc21 = new ActionDescriptor();
    desc21.putPath( charIDToTypeID('null'), new File(placeFile) );
    desc21.putEnumerated( charIDToTypeID('FTcs'), charIDToTypeID('QCSt'), charIDToTypeID('Qcsa') );
        var desc22 = new ActionDescriptor();
        desc22.putUnitDouble( charIDToTypeID('Hrzn'), charIDToTypeID('#Pxl'), 0.000000 );
        desc22.putUnitDouble( charIDToTypeID('Vrtc'), charIDToTypeID('#Pxl'), 0.000000 );
    desc21.putObject( charIDToTypeID('Ofst'), charIDToTypeID('Ofst'), desc22 );
    executeAction( charIDToTypeID('Plc '), desc21, DialogModes.NO );
};
function rasterLayer() {
    var desc9 = new ActionDescriptor();
        var ref4 = new ActionReference();
        ref4.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
    desc9.putReference( charIDToTypeID('null'), ref4 );
    executeAction( stringIDToTypeID('rasterizeLayer'), desc9, DialogModes.NO );
};
function SaveJPEG(saveFile, jpegQuality){
jpgSaveOptions = new JPEGSaveOptions();
jpgSaveOptions.embedColorProfile = true;
jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
jpgSaveOptions.matte = MatteType.NONE;
jpgSaveOptions.quality = jpegQuality;
activeDocument.saveAs(saveFile, jpgSaveOptions, true,Extension.LOWERCASE);
};

Tags: Photoshop

Similar Questions

  • How can I copy 2 pages and turn them into a new pdf document? I can highlight pages, export and then combine files into new pdf, but it's very heavy. Acrobat DC, I cannot open 2 files acrobat side by side.

    I have a 600-page adobe document. How can I copy 2 pages and turn them into a new document? I can highlight pages, export and then combine files into new pdf, but it's very heavy. Acrobat DC, I cannot open 2 files acrobat side by side. In the past, I could take two pages and copy and insert into the document opened adjacent... Thank you

    I'm not what you mean... Start by describing what tools or methods that you use to extract these pages.

    What you write in the first sentence is not true, however. In the dialogue window extract Pages, you can choose whether or not to delete the extracted pages of the original file and extract them as individual pages or not. If you UN-select both options, you will get a single file that contains the pages you have checked out, and they will not be deleted from the original file.

  • Dialog box confirm boxes are too wide for the page and disappear on the right side in the sites we develop. It's new. How to fix?

    In Windows and Mac confirmation dialog boxes are open now too wide. It extends on the right side of the page and therefore mask the user action buttons. The site has no horizontal scroll bar.

    When you resize the browser window, the dialog box has scaled to the correct size. As website developers, how can we prevent what happens?

    May be this bug:

    • bug 686469 - tab-modal alert can extend beyond the browser window

    (please do not comment in bug reports)

  • Download images and saving them to a folder

    Well Hello, this is my first topic here in the oracle forums and I m already ask something, sry, but I really need help on this topic.

    I am currently working with Oracle database 10g XE with Apex 4.0 x.

    So here go us:

    I m trying to make application to the Apex where users will be able to download pictures and store them in a folder is desired on the server. I have red little son here and I found this.

    1. create FileBrowse point in Apex
    2. check the PLSQL processes that will take the images downloaded from WWV_FLOW_FILES and store them in custom table (allows to call IMAGES). After this step, we have our images stored in the table of the IMAGES on the server.
    3. now this is the confusing part, I want to be able, on the client side, see the list of folders already created on a server, or be able to specify the name of the folder and then call some PLSQL (or something else) to create this folder.
    4. after that, I saw that there are many ways to recreate the images and store them in the specific folder (created or specified in step 3 by customer) http://apex.oracle.com/pls/otn/f?p=31517:LOGIN:1753086653679135
    5. This is also part confusing: where should I create the main folder (the folder where all other records will be kept) so that I can access it using the application (purpose: image display)
    For example, when you create a Web page by using html, if I wanted to access some image files I would fix his way relative index.html.

    Lets say i m looking for the end do not code, I just want some advice in order to continue my research, or be able to understand this concept a little better because I m new to this.

    Thanks in advance.

    Published by: on January 24, 2012 910011 15:00

    With PL/SQL, you can create using UTL_FILE files, but not files.
    But using DBMS_SCHEDULER, you can run 'external' jobs... what could be a sort of "mkdir" command (see http://psoug.org/reference/dbms_scheduler.html)

    But think about it... I don't know that dbms_scheduler is available in XE...

    So something like the XFILES, using the built-in features XML - DB can be an elegant solution as well. You can even grant access to the XML - DB by using WebDav repository, it looks just like a folder on your network in windows Explorer.

    (Thanks for the plug XFILES, Mark)

  • I've updated Windows 8.0 Windows 8.1, since Firefox run a bit oddly. In particular, when on the sites with lots of images like Facebook, etc.

    Hello, I am writing because I have a few problems with my favorite browser after update to 8.1 Windows. Here are some details. I've updated Windows 8.0 Windows 8.1, since Firefox run a bit oddly. In particular, when on sites with lots of images like Facebook. It's as if there is some sort of effect of Flikr between the office and the images, as well as between the images and the browser (a bit like old flikering of 16-bit video games). It's not too bad, but it's a question. I tried to reset firefox and restart the computer. I have not tried a repair, and I haven't done an uninstall.

    Hello, disable hardware acceleration in firefox should a restart of the application is taken into account. have you tried that too?

    Please also see if there is an available update your graphics drivers ...

  • How put the component below (opposite side) a large component of hole?

    I have a large component of hole that moves whenever I try to place a component under it... on the opposite side of the Board. How can I stop this function 'Auto-move', or, how can I change the way Ultisim recognizes this element?

    Hello

    The movement is happeing because of an option called part shoving. To disable it, go to design > party rush. If this option is disabled, the part should not move. You can also lock the part by clicking right on in and selecting lock. This will allow you to put the party across the Board.

    I hope this helps.

  • Having trouble downloading a picture on Adobe Stock, without the watermark and quality. Instead, I get only have access to a preview image.

    Hello
    Having trouble downloading a picture on Adobe Stock, without the watermark and quality.

    Instead, I get only have access to a preview image.

    Follow the steps in this post and see if that helps you back on track: I downloaded my 10 free images and they all have the Adobe watermark on them, so I can't use them. Why do they have a watermark on them?

  • Hi Ive had lightroom 6 installed for three months now when I export my image the watermark is not on the image and it know test expired above were he know lightroom on top

    I export my image the watermark is not on the image and it know test expired above were he says lightroom on top

    Please create a new watermark with a completely new police force and then check.

    To pause Lightroom Mobile, click on your name on the top left corner and that there should be a drop-down list, you will see the option to Pause.

  • I bought several images, when I try then the downloaded on my computer, he tries to charge me again! Any ideas? I bought a lot of images before without any problem.

    I bought several images, when I try then the downloaded on my computer, he tries to charge me again! Any ideas? I bought a lot of images before without any problem.

    Hi Matthew,

    You view the image in one of your libraries? If so could you please open the menu under your avatar and choose the license history. From there, click on the image ID for your image and download it here. I recently posted a bug about what you described above. If these instructions do not work for you please answer and let me know.

    EBQ

  • I want to max my screen to be able to see the images in the messages. The ' to, subject, to and BCC occupy 25% of the screen - one under the other.

    When I view a message it is a title showing the ' to, subject, to and Bcc' message under each other in a group which occupies about 25% of the screen. This prevent me to see a complete picture of the message. Can not change this option for do not show this information at all because it is used to occupy a large part of the screen?

    Not being able to increase the resolution will mean less can be displayed, but obviously, it is a personal thing and you should be able to see the screen comfortably.

    However, I noticed your picture looks like quite like mine, although similar.

    The pale blue bar at the top of the tab should display icons "Mail Toolbar" which does not appear in your screenshot.
    It should have these buttons or icons for example: get Messages, write, address book, Menu icon and research.
    If it has been disabled, then the pale blue box would not be showing. Thus, it is a query.

    Q: do you have 'tailor-made' bar messaging tools to remove the icons from buttons?
    Customization allows you do drag icons on and off the e-mail toolbar. Do you have this is thinking he might save you space, but in fact you still have the domain - the mail toolbar, but it is now empty?
    If you have removed them in order to create a space, I would say that you put all the icons back, so that they are available. It is easier to hide the view by disabling the e-mail toolbar.

    View > toolbars > mail toolbar
    Q: is the messaging on or off toolbar?

    Disabling should you save space by deleting the pale blue box above, but it still won't create the kind of space you're talking about. Baring in mind that each image can be a different size.

    The area with of, subject, to and Bcc, should also show several buttons for example: answer, before, Archive, Junk, Delete and another button called 'other Actions '. These buttons appear on the right side. Maybe you have them, but they cropped in the displayed image.
    If the area to which you refer has done more than just the titles. It also offers you a way to click on for example; Respond directly from the email that you look.

    What version of Thunderbird do you use?

    Have you tried the 'Conversations' addon because this will reduce the headers?

    There is also another Addon called "Headers Compact" will be also reduced the size of the headers:

    But you are only going to win some space which cannot result will be enough to see the large embedded images.

          -------------------------------------
    

    The person who transmits the image should really be sending these images in the form of attachments, so that you can choose to view by using the correct application of the program and/or reduce the size of the screen if they are incorporating the image in the content.

    If they refuse to send the image properly and persist in sending large embedded images, then you may not be able to see full images without scrolling you have no control over how they sent the image; It could be small or huge, which will affect the ability to view an image all at once.

    For large images nested:
    The best option for you would be to right click on the image and use "save image under" choose to save the image to your computer in a right example folder: Photos. Then open and view them using an appropriate such as "Windows photo Gallery" or similar application.
    So if you choose to delete the email you don't waste the image she's saved elsewhere on your computer.

  • How to combine several libraries in a library complete?  And this new global all0 library can be an external hard drive?

    How to combine several libraries in a library complete?  And this new global all0 library can be an external hard drive?

    1. click here for more information.

    2. Yes, if this disk contains a partition image or the drive Mac OS Extended format.

    (142356)

  • How do I change images from the album LIVE always prior to importation and after batch in Photos

    Help

    I have 1000 photos that are in LIVE format from my Iphone 6s.  I need to change this format forever I need to create slide shows and other changes.  Is this possible?  I know how to change each one individually, but obviously prefer a batch processing option.

    Thank you

    JO

    The best way to keep your original Photos to live and create a lot of JPEGs from your Live Photos would be to select all Photos live and use the file > export to export as JPEG files in a folder on your desktop. Set it the JPEG quality and the format of subfolder 'None '.

    Then import this file with JPEG files and use them for your slide show and delete them once again, when you don't need them more.  I find it safer to change the Live pictures to separate the still image video. There is a lot of work to do to revive again.

  • How to transfer a table OR scop 2D in a gray-scale image and save it

    Hi all

    I have acquired a 2D array and that you want to transfer into an image in grey scale (12 bits) and save it to my hard drive but I don't know how to do it.

    I can use the graph of the intensity to show the 2Darray in gray-scale image, but intensity graph.vi cannot save the image in real time.

    Thank you.

    The 24 bits is a color image with 8 bits per channel of color per pixel (interlaced, if I remember correctly).  It is not a 24-bit gray level, so I don't think it will work for you.  I think that the library IMAQ (an add-on LabVIEW) will manage to 16-bit gray scale, if you can get a copy.

    Native LabVIEW to work around the problem, you could also split your image into two images of 8 bits, with one image that represents the high bytes, the other down.  You could then combine them when you do the analysis, if your analysis program is capable of that.

  • Help with image files, drop box and save the changes?

    My husband put all our photos of drop box.  They are still on our computer, but we can now also access elsewhere.  But it has somewhat modified files.

    I'm putting together, cultures and (in general) to save the changes made to some images.  But I get an error.

    Example: The image I want to change is on the side.  I right-click on the file icon and select "Rotate clockwise" in the menu dropdown. Immediately, I raise the sound "bonk" and an error message appears: "you cannot rotate this image.  The file can be used or open in another program or maybe the file is read only.  It wasn't a problem before doing things to the drop box.
    So, I wait to make sure that everything is ok.  The image is not open anywhere else.  I clicked the properties option to see if it is in read-only mode.  He said that it is not.
    When I open the image and try to use the rotation on the bottom, it will turn.  But when I close the window, I get a different error message that says "Windows Photo Viewer cannot save changes to this picture because there is a problem with the properties of the image file."   There is a link at the bottom of the message box for "Why can't save this picture?  I clicked it.  He said "the subject you are looking for is not available in this version of Windows. For additional assistance, see multiple support options. "The more support options?  Get a tech savvy friend who could help me. Nice.
    Anyone know what I need to do to make this work?
    I don't know what version of windows we have.  I'm sure that's not Vista.  It's the one after that.

    Hello

    Thank you asking in the Microsoft Community.

    1. open Microsoft paint.

    2. navigate to the image through Microsoft Paint.

    3 try to rotate and save the image.

    4 let me know if you are able to.

    Post back with the result.

  • Key shortcut (or batch) Image-&gt; Auto color - and - save in the same format

    I scanned a lot of old photos in color, positive.

    FWIW, I scanned the sRGB in the scanner software settings.

    24-bit color, 600 dpi resolution

    Images are not professional, just for screen viewing.

    Probably not, but if... or even not at all printing is required, it will be 4 "x 6" (10x15cm)

    The scanned images are somewhere between 5-6MB (still intact)

    Almost all have this yellow and even slightly red color change.

    Found the Image-> Auto color restores the color well.

    Nothing more useless.

    For now, I need to

    1. open one by one,

    2 then image-> Lee,

    3. save,

    4. Select JPG (it is set by default to .psd).

    5 crush the source.

    Q: is it possible by using a keyboard shortcut?
    If so, how can I proceed?

    (I'm not an expert on this topic, sorry)

    Don't talk about 375 to 400 images.

    Photoshop CS6.

    First of all, I will copy them all to a new '-working folder ", to keep the original scan yet.

    Then:

    Open - say - a half dozen

    Select 1,

    shortcut key

    Select the 2nd

    shortcut key

    Select the 3rd

    etc.

    (I want to see the results before closing)

    Thank you!

    =

    Are the original scan JPEG files?

    The files must be of the same file format to crush.

    Anyway, you can record an action with a stop/continue after the step of automatic color.

    Then use file > batch automate to open, run the action and save the files.

    Something like below:

    Action:

    Lot:

Maybe you are looking for

  • Display ListBox ActiveRow

    Hi all I have an application in which I send the sequence of commands to unit and reading back answer, for all orders there is a name assigned. Now I use listbox to display all this and I am able to write all the names of sequence test to the listbox

  • Problem with Windows Media

    I use Vista, Windows Media does not open in full screen. It is open on the taskbar as mini version but when I click it it goes and comes on the task bar of version mini to a tab on the task bar, but does not open on my screen. I understand that the m

  • Failure of T61p NVidia 570 m

    Hi all I turned on my T61p as usual last night and the status lights came on as usual but nothing showed on the screen. I then disconnected the battery, he left, reconnected it, same thing. I have reset the CMOS by unplugging the CMOS battery and let

  • How extenation put bbui.js implemented in webworks 2.0

    So I'm having a difficult time in the BBUI.js implementation using webworks 2.0. I downloaded from.  https://github.com/BlackBerry/bbUI.js Now the instructions are not very clear on how to install.  I managed to find the REadme file in the pkg\bb10 f

  • Hierarchical query help

    Version: Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit ProductionHelloI can't just writing this hierarchical query. CREATE TABLE resources (     resource_name   VARCHAR2( 20 )    ,resource_id     NUMBER    ,resource_mgr_id NUMBE