Automator to scan images using Twain into Photoshop CS
Hi, I Need to scan about 500 certificates to my hard drive.
I have Photoshop CS and Epson 1650 scanner. What I would like to do it to be able to run an automate task from Photoshop that scans, imports and opens the certificate.
To import at the moment I have to go to FIle>Import>EpsonTwain 5. Then I have to wait each time as Epson Twain boots up (Is there a way of keeping this open?). Then I have press either the Full Auto Mode or Scan (Scan for Preset manual parameters, which I would prefer) before the image finally appears.
I would then like to finish the automator run with Image>Adjustments>Auto levels and Save as.
Photoshop does not appear in the Applications Library in Automator and I am very new to Automator, so if SKS could point me in the reight direction I would be very grateful.
Thanks and take care. Matt
iMac 800MHz Power PC G4 Mac OS X (10.4.6) 1GB SDRAM
>
Hi,
You can try a package named: JTwain, which is
available at http://asprise.com/product/jtwain.
JTwain supports all kinds of digital cameras and
scanners. You can use Java to access, contorl digital
cameras and scanners, and of course, to acquire
images with flexible settings.
The developers' guide is available @
http://asprise.com/product/jtwain/devGuide.php
In its simplest case, one line of Java code can solve
your problem.
Good luck!Hi
this is licensed... have to figure out an implementation of TWAIN itself..
Similar Messages
-
Script to open images using bridge for photoshop
hi,
i am looking for photoshop script to open set of selected images using bridge into photoshop and handle those images into a layers for the active document.
Thanks,
Thulasiram.SI'm not 100% sure what you are looking for, but this is not the best forum to be looking. You either want the Bridge scripting forum, or the Photoshop one:
http://forums.adobe.com/community/bridge/bridge_scripting
http://forums.adobe.com/community/photoshop/photoshop_scripting
Also, please trim the links from your signature in the future. (I did it for you this time.)
Harbs -
I am using Photoshop CC, how do I scan an image (hand drawn) into photoshop?
I am using Photoshop CC, how do I scan an image (hand drawn) into photoshop?
Hello,
please have a look at "Photoshop Help/Acquiring images from cameras and scanners" >>>
http://helpx.adobe.com/photoshop/using/acquiring-images-cameras-scanners.html#WSfd1234e1c4 b69f30ea53e41001031ab64-790ca
>>> Importing scanned Images and so too here for some critical responses/voices in
https://forums.adobe.com/thread/1245120
https://forums.adobe.com/message/6152457
Hans-Günter -
Open Photoshop image from PDF into Photoshop and change cmyk text to 100% black
when I have a supplied PDF file that has cmyk text, I open the image in Photoshop but I don't know how to change the cmyk text (some very small and some large) to 100% Black. I used to know the short cut key to do this but I can't remember. I used to use the marque tool then use a short cut key that would knock the cmy out of the k. Can some one please tell me how I can achieve this in a flattened photoshop file opened from PDF into Photoshop. Thanks
One way to do this:
Use a hue/saturation adjustment layer, click the Colorize box and drag the Lightness slider to -100. The black will go to C:0, M:0 Y:0, K:100. I'm not aware of a shortcut for this, perhaps someone more informed could help there. You would only want to apply it to the text, clipped to a separate text layer ideally, but if your file is already flattened you could apply it via a selection/masking.
Mike -
Photoshop CS5 - drag images from web into photoshop issue
Has anyone had this happen or know a solution? Photoshop CS5 at work does this, but the one I bought for home doesn't... weird
When I drag an image from the web directly into Photoshop, the program almost freezes, I can select tools, but cant use them, I can get the handles to display with Free Transform, but then cant scale it. I have to actually close the file, then re-open it to continue working.The exact same thing happens with my photoshop CS5! very irritating! My boyfriends photoshop CS5 works fine and does not have this problem either! HELP!
-
Saving image using mobile into sap R/3
We are using sap mobile platform version 2.3 and our client requirement is to save images using mobile apps.
We already saved images in mime repository but for this we have to required client modifiable , but due to security reason we can't do this.
Please Help.Hi Nilesh ,
I had a scenario to attach image to pr05 transaction from mobile, so that when click view attachment button in pr05 i can see the image . My code is based on that .
it is the function module with import parameter base64 string and filename ,last three letters of the file name proceeding the . is the extension
in your case you need to create custom object type instead of BUS2089 .
Do research regarding that ..
-->Local Workare declaration.
DATA : ls_fol_id TYPE soodk,
ls_obj_id TYPE soodk,
ls_obj_data TYPE sood1,
ls_content TYPE soli,
ls_folmem_k TYPE sofmk,
ls_note TYPE borident,
ls_object TYPE borident.
**--> Local internal table declaration.
DATA : lt_content TYPE STANDARD TABLE OF soli,
lt_url_tab TYPE STANDARD TABLE OF so_url,
lt_objhead TYPE STANDARD TABLE OF soli.
**--> Local variable declaration.
DATA : lv_filename TYPE string,
lv_file_name_with_path TYPE chkfile,
lv_stripped_name TYPE string,
lv_name TYPE char30,
lv_url_tab_size TYPE sytabix,
lv_ep_note TYPE borident-objkey.
ls_object-objtype = 'BUS2089'.
ls_object-objkey = '001095510000020022'.
ls_obj_data-objdes = I_FILE_NAME.
ls_obj_data-file_ext = I_FILE_EXT.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = I_FILE
TABLES
binary_tab = lt_content.
CALL FUNCTION 'SO_CONVERT_CONTENTS_BIN'
EXPORTING
it_contents_bin = lt_content[]
IMPORTING
et_contents_bin = lt_content[].
**--> Getting folder ID to save data
CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
EXPORTING
region = 'B'
IMPORTING
folder_id = ls_fol_id
EXCEPTIONS
communication_failure = 1
owner_not_exist = 2
system_failure = 3
x_error = 4
OTHERS = 5.
IF sy-subrc = 0.
ls_obj_data-objsns = 'O'.
ls_obj_data-objla = sy-langu.
ls_obj_data-objlen = LINES( lt_content ) * 255.
CLEAR ls_content.
CONCATENATE '&SO_FILENAME=' I_FILE_NAME '.' I_FILE_EXT INTO ls_content.
APPEND ls_content TO lt_objhead.
**-->To Create an Object and Move to a Folder
CALL FUNCTION 'SO_OBJECT_INSERT'
EXPORTING
folder_id = ls_fol_id
object_hd_change = ls_obj_data
object_type = 'EXT'
IMPORTING
object_id = ls_obj_id
TABLES
objcont = lt_content
objhead = lt_objhead
EXCEPTIONS
active_user_not_exist = 1
communication_failure = 2
component_not_available = 3
dl_name_exist = 4
folder_not_exist = 5
folder_no_authorization = 6
object_type_not_exist = 7
operation_no_authorization = 8
owner_not_exist = 9
parameter_error = 10
substitute_not_active = 11
substitute_not_defined = 12
system_failure = 13
x_error = 14
OTHERS = 15.
IF sy-subrc = 0 AND ls_object-objkey IS NOT INITIAL.
* COMMIT WORK AND WAIT.
ls_folmem_k-foltp = ls_fol_id-objtp.
ls_folmem_k-folyr = ls_fol_id-objyr.
ls_folmem_k-folno = ls_fol_id-objno.
ls_folmem_k-doctp = ls_obj_id-objtp.
ls_folmem_k-docyr = ls_obj_id-objyr.
ls_folmem_k-docno = ls_obj_id-objno.
lv_ep_note = ls_folmem_k.
ls_note-objtype = 'MESSAGE'.
ls_note-objkey = lv_ep_note.
**-->Link the object ID to trip No.
CALL FUNCTION 'BINARY_RELATION_CREATE_COMMIT'
EXPORTING
obj_rolea = ls_object
obj_roleb = ls_note
relationtype = 'ATTA'
EXCEPTIONS
no_model = 1
internal_error = 2
unknown = 3
OTHERS = 4.
IF sy-subrc = 0.
* COMMIT WORK AND WAIT.
ENDIF.
ENDIF. " SO_OBJECT_INSERT
ENDIF. " SO_FOLDER_ROOT_ID_GET
ENDFUNCTION. -
Any suggestions as to how to fix this, please?
My printed colors look wrong. | Mylenium's Error Code Database
Mylenium -
Opening/Dragging Images from Desktop into Photoshop CS4
I'm trying to import/drag/open a png image file from finder, my desktop, or anywhere on my hard drive into an existing photoshop document. Unfortunately, the image does not drop into the existing document; it just bounces off. No new layer is created. When I try to import the photo manually from File-->Open, the image is opened in a new document instead of the existing one.
This only occurs for images saved on my hard drive. Any image pulled from a web browser and dragged/dropped into the document creates a layer. I'm running Snow Leopard.
I've installed the latest software updates to Snow Leopard and installed the latest CS4 patch, version 11.0.2.
Any help would be greatly appreciated.
Regards,
Alex DoanExcuse me
Tai Lao wrote:
akdoan wrote:
…This only occurs for images saved on my hard drive. Any image pulled from a web browser and dragged/dropped into the document creates a layer…
That's because when you "drag" from the web browser, you are performing a copy-and-paste from one application to another one. The Finder is not involved. As I said earlier, "The Finder knows nothing about dragging Photoshop layers."
My original post was poorly written. Please ignore my digression on file-->open, which loads the image into a new layer in a new document, which it has always done and like you said, is normal behavior.
I was emphasizing that I can't find a way to directly insert a photo from the OS (Snow Leopard) running CS4 into an existing document in one step. The directory path of the file on the OS is meaningless in regard to this behavior.
Tai Lao wrote:That is perfectly normal, expected behavior. The Finder is not involved. As I said earlier, "Are you suggesting it used to behave any differently for you earlier? ??? !!
I am running CS5 on Snow Leopard on another computer. Dragging and dropping a picture located anywhere on the OS into an existing document works flawlessly, and loads the image into a new layer within the open document.
You've lost the script by focusing on the finder. The file path of the image, whatever it is:
/Users/alex/Desktop/image.png
/Users/alex/Documents/image.png
/Users/alex/Pictures/image.png
should be meaningless.
Dragging and dropping an image from OS X to Photoshop is the rule and this failure the exception.
There is something I'm not doing or a misconfiguration causing this. -
Question on scanned images and coloring in Photoshop
I have some sketches from my drawing class that I would like to scan and color in Photoshop. I scan the sketch
but I can't add color. I've tried 'lassoing' a portion of the drawing
but the paint bucket still won't add color.
What am I doing wrong? Please help.
thanks.The Paint Bucket tool may be the wrong tool, or at least you may have its Threshold set to a low value, as it replaces pixels only of a similar color to the one you click on.
It may be more direct to just select the Brush tool and set up a large brush to paint solid color in the region you selected.
If you want to get into more advanced functionality, which will allow you to correct mistakes or continue to adjust your colorizing for example, perhaps you will want to create a new layer and paint on that layer. Without knowing your goals it's hard to advise further, but you might also want to learn more about Layer blending mode "Color" vs. "Normal".
-Noel -
VBA code to import scanned images into Photoshop CS2 with TWAIN
Hi,
I have to develop a solution that automates the scanning of an image using the TWAIN driver interface. Once scanned, the image appears as a new document in Photoshop where it will be further processed using VBScript scripts.
The solution so far :
Using the freeware 'EZTW32.dll' (copied into C:\WINDOWS\System\), I am able to open the TWAIN scan dialogue on screen, using the function 'TWAIN_AcquireToClipboard(Me.Hwnd, nPixTypes) from the 'EZTW32' dll.
Once the image is scanned, the TWAIN driver is automatically closed, leaving the scanned image on the Windows clipboard.
I then launch Photoshop CS2 using a shell code :
(It is important that Photoshop runs minimized)
Dim strPathname As String
Dim lngShellReturn As Long
Dim appRef As Object
Dim newDocRef
strPathname = "C:\Program Files\Adobe\Adobe Photoshop CS2\Photoshop.exe"
lngShellReturn = Shell(strPathname, vbMinimizedNoFocus)
Set appRef = CreateObject("Photoshop.Application")
When Photoshop is running, then a new document is created and the scanned image is pasted into the document from the Windows clipboard...
Set newDocRef = Documents.Add(8.268, 11.693, 600, "New Doc")
newDocRef.Paste
OK, this works up to a point. The newly scanned image appears automatically in Photoshop.
The big problem is that when the user makes a change in resolution or draws a selection box in the TWAIN dialog, this data is not recovered from TWAIN, so the image size parameters in the new document cannot be set.
A beter solution would be to write code that emulates the menu commands in Photoshop CS2:
File -> Import -> [Current Scanner]
that launches the TWAIN driver for the current scanner (the code must close TWAIN immediately after scanning). In this case, the resolution and image selection parameters are also imported into the new document.
I am currently refering to the Photoshop CS2 SDK. Do I need to request the Advanced SDK ?
Once beyond this point, then I think I can continue the image processing routines using VBScript as per the SDK.
Any help or other pointers to the TWAIN problem would be VERY APPRECIATED !
LarsPLEASE IGNORE MY PREVIOUS POST !
I have now fully resolved the TWAIN problem. It works perfectly and is very robust. I am now continuing with the batch image processing for the newly scanned images using the Photoshop CS2 SDK scripting documents, that I find very detailed, well written, and VERY helpful :)
Peace and love,
Lars -
Image Size when bringing pix into Photoshop from a Camera
I'm using Photoshop CS2 on XP Media Center Edition. I cannot, for the life of me, find out how set the default dpi of images being brought into Photoshop.
At the moment I'm using an Action but that's pretty time intensive when I have to bring in more than a few photos. Sometimes I have 2 or 3 hundred to do.
Can anyone help me?
Thanks in advance for any assistance you can give me.
JJImages are made of pixels. ppi has nothing to do with the characteristics of an image file. The ppi is only a suggested setting if placed in the metadata of an image file. You can print your image at any size you want regardless of the ppi embedded in the file. Some printers will assume you want to use the embedded ppi setting but again this can be overridden.
So, Printed images have ppi. (image files do not, until they are printed)
So ask yourself, why are you trying to set the default ppi (you say dpi) of the image files? What are you going to use this metadata information for. Normally I just ignore this ppi metadata since it really does not mean anything, other than possibly the physical size you meant to print your image, but again it can be overridden at the time of printing. -
Why does LR name my images "Edit8bit" When opening into Photoshop?
I have preferences>external editing>Bit Depth set to 16 bits/component. So why when I open my images is the file name saying they are 8 bit? Photoshop shows them as "RGB/16". The image mode shows 16 bit inside of photoshop.
These images start out in Lightroom as 12 or 14 bit RAW (NEF) images. I'm just concerned that some sort of 8 bit conversion is happening before my images get loaded into photoshop and I am losing some color information in the process? Am I?
I am currently on LR 5.2 and Photoshop CC 14.1.2 But this has been happening for many versions of LR and PhotoshopWhat have you got set as the External Editing File Naming scheme, bottom of the External Editing tab in the Lightroom Preferences? That's where the file name is (user) controlled:
-
Reimport image after modifying in Photoshop CC from Lightroom 5.3
Tilla week ago I used to work on a PC. When modifying an image from Lightroom into Photoshop 6 the image was automatically reimported in the origin folder,
I am now on a MacPro and when I modify an image in Photoshop CC from Lightroom 5.3 it reimports the image in a ghost directory with the same name than the origin directory. It is accessible but seen as a different diretctory with the same name. When I try to copy the image in the origin directory I have a message that an image with the same name is already present in the directory. It can not be seen and I can not pile the new and old images together. What can I do?Lightroom, no. You need a graphics editor. If Photoshop Extended does what you need, why not keep using it? Creative Cloud Photography plan | Adobe Creative Cloud
Elements is a significantly simpler version of Photoshop. It might do what you need but it lacks the finer bells & whistles offered by Extended.
Picture editor, edit pictures | Adobe Photoshop Elements 13
Nancy O. -
Hi,
i want to take some transparent png files from internet into photoshop. The files originally transpernt on internet.
Im copying that image and paste into photoshop but it won't transparent. therefore im saving the files my mac and using like that.
But i dont want do this. Because this isn't problem in illustrator. Can anybody help me how can i use transparent png files as transparent in photoshop without save file?
hope could explain my problem.If you can right click on the image and copy its utl to the clipboard you may ne able to open that in Photoshop with this old Photoshop script.
// OpenImageFromWeb.jsx
// Copyright 2006-2009
// Written by Jeffrey Tranberry
// Photoshop for Geeks Version 3.0
// modified by MLH
// modified by JJMACK 2010
Description:
This sample script shows how to download images from a web server using the
Socket object.
// Note: Socket.read() parameter & behavior
// Socket.read() will read or time out. It may not read all data fromserver. <---------------
// Socket.read(999999) will read 999999 bytes, or timeout, or socket will be
// closed by the server.
// enable double clicking from the
// Macintosh Finder or the Windows Explorer
#target photoshop
// Make Photoshop the frontmost application
app.bringToFront();
// SETUP
var html = "";
var request = "";
var url = "";
var binary = "";
var requesthtml = "";
var socket = new Socket;
var domain = "www.mouseprints.net" // the domain for the file we want
var sImg = "/old/dpr/JJMack8btiSrgb.png"; // the rest of the url for the file we want
var port = ":80"; // the port for the file we want
// MAIN
var url = prompt("Enter the image's full URL http://domain/full image path",url); // prompt for domain name
if (url != null && url != ""){
if ( (url.indexOf("http://") != -1) || (url.indexOf("HTTP://") != -1) ) {
domainPathLength = url.length - "http://".length;
domainPath = url.substr(7, domainPathLength);
pathOffset = domainPath.indexOf("/");
domain = domainPath.substr(0, pathOffset);
sImg = domainPath.substr(pathOffset, domainPath.length - pathOffset );
// Isolate Image name
var Name = sImg
var imagePath = "";
while (Name.indexOf("/") != -1 ) { // Strip Path
imagePath= imagePath + Name.substr(0, Name.indexOf("/") + 1);
Name = Name.substr(Name.indexOf("/") + 1 ,);
//alert("domain = " + domain + " , Image = " + sImg + " Image File Name = " + Name);
if ( domain != "" && sImg != "" && sImg != "/" && Name.indexOf(".") != -1 ) {
var f = File("~/" + Name); // Image file name
f.encoding = "binary"; // set binary mode
f.open("w");
if (socket.open(domain + port, "binary")){
//alert("GET " + sImg +" HTTP/1.0\n\n");
requesthtml ="\n\nDmain:" + domain + " Port" + port + " binary\n"
//request ="GET " + sImg +" HTTP/1.0\n\n"
request ="GET " + sImg +" HTTP/1.0\nHost: " + domain + "\nAccept: image/gif, image/x-xbitmap, image/png, image/jpeg, */*\n\n";
socket.write(request); // get the file
var binary = socket.read(99999999);
binary = removeHeaders(binary);
f.write(binary);
socket.close();
else { alert("Connection to Domain:" + domain + " Port" + port + " Failed ");}
f.close();
if (binary.length != 0) {
//alert ("file length = " + binary.length );
if(app.documents.length == 0) {
//app.documents.add([width] [, height] [, resolution] [, name] [, mode] [, initialFill] [,pixelAspectRatio] [, bitsPerChannel] [,colorProfileName])
app.documents.add(new UnitValue(1600,'px'), new UnitValue(1200,'px'), 72, null, NewDocumentMode.RGB, DocumentFill.WHITE, 1,BitsPerChannelType.EIGHT, "sRGB IEC61966-2.1" );
placeSmartObject( f );
f.remove(); // Remove temporary downloaded files
else { alert("Invalid Image URL: " + url ); }
else { alert("Invalid URL: " + url ); }
else { if ( url == "" ) alert("No URL Entered"); }
// FUNCTIONS
function placeSmartObject(fileRef){
//create a new smart object layer using a file
try {
var desc = new ActionDescriptor();
desc.putPath( charIDToTypeID( "null" ), new File( fileRef ) );
desc.putEnumerated( charIDToTypeID( "FTcs" ), charIDToTypeID( "QCSt" ),charIDToTypeID( "Qcsa" ));
desc.putUnitDouble( charIDToTypeID( "Wdth" ),charIDToTypeID( "#Prc" ), 100 );
desc.putUnitDouble( charIDToTypeID( "Hght" ), charIDToTypeID( "#Prc" ), 100 );
desc.putUnitDouble( charIDToTypeID( "Angl" ), charIDToTypeID( "#Ang" ), 0 );
desc.putBoolean( charIDToTypeID( "Lnkd" ), true );
executeAction( charIDToTypeID( "Plc " ), desc, DialogModes.NO );
activeDocument.activeLayer.resize(100 ,100,AnchorPosition.MIDDLECENTER);
activeDocument.revealAll();
} catch (e) { alert("Placeing file: '" + fileRef + "' failed"); }
// Remove header lines from HTTP response
function removeHeaders(binary){
var bContinue = true ; // flag for finding end of header
var line = "";
var httpheader = "";
var nFirst = 0;
var count = 0;
while (bContinue) {
line = getLine(binary) ; // each header line
httpheader = httpheader + line;
bContinue = line.length >= 2 ; // blank header == end of header
nFirst = line.length + 1 ;
binary = binary.substr(nFirst) ;
if (httpheader.indexOf("Bad Request") != -1 || httpheader.indexOf("Not Found") != -1) {
alert (requesthtml + request + httpheader);
var binary = "";
//alert (requesthtml + request + httpheader + "\nFile length = " + binary.length);
return binary;
// Get a response line from the HTML
function getLine(html){
var line = "" ;
for (var i = 0; html.charCodeAt(i) != 10; i++){ // finding line end
line += html[i] ;
return line ; -
Opening from LR4 into Photoshop
Is anyone else suddenly having issues with opening an adjusted image from LR4 into Photoshop, and the adjustments not showing up? Never had this problem, even in beta versions. I have checked "open in Photoshop with LR adjustments. Been using Lightroom since the original beta.
I believe there is a problem until a Photoshop update occurs. I make changes in LR
command E" to import to Photoshop when the dialogue box appears with this option "Render Using Lightrom" I choose it. It brings LR edited Photos inot PS with your changes.
Hope this works and I got it right, works for me.
Maybe you are looking for
-
Word to Acrobat Pro X picture conversion problems
Why do some of the pictures I convert from MSWord to Acrobat Pro X display on the new pdf doc as a black square? I have tried adjusting the contrast and brightness on the original as well as the text wrapping. On some images adjusting the contrast co
-
Release date for commercial version of Solaris 10 (x86)?
Hi Does anybody know when the commercial version of Solaris 10 (x86) will be released. This is rather urgent as the Oracle certification depends on this release date. thanks
-
Adobe Premiere Elements 12 Setup will not accept my Serial Number!
Adobe Premiere Elements 12 Setup will not accept my Serial Number!
-
Transfer Library/Application Support to another drive?
Background: I've got time ago a SSD drive, which is 90 GB, for my Mac Pro. I've decided to use it as startup I've installed just the OS (Lion), and then I've used a regular HDD (500 Gb) as "home", so my desktop, music, documents and such does not go
-
Will firefox insall as my default browser on a mac osx 10.4.11?
Will Firefox install as my default browser on a mac osx 10.4.11 using safari, version 4.1? I dont want to use firefox as my default browser, I want to use both browsers. == User Agent == Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWeb