How can I read the images' path in the stored catalog?
I'm really new to pluginu development and LR. I have a problem finding the right methods to execute my intentions.
I'd like to get the real path(s) of the pictures in the catalog, so that my external plugin can use them for further processing.
I know Lightroom stores the catalog in C:\Users\[user name]\Pictures\Lightroom\Lightroom 5 Catalog.lrcat. But I want to get the actual path to each .jpg inside that catalog and write that path into a simple file (e.g. .txt) from which my plugin can read the path and use the images chosen by the user in LR.
Then my plugin stores the processed images with tags into a file which should be read by LR. I don't know if it's so easy. Maybe it must create an extra collection for the catalog?
The thing is that the Lightroom 5 manual isn't really helpful. And it would be great if someone could help.
Thank you. I already figured it out by searching the whole internet
But there's a thing bugging me. I want to delete the log file in which all paths are stored because everytime I run the plugin I get duplicates of the paths.
So I thought of removing the existing log file before every time I use the plugin.
I tried LrTasks.execute("del %HOMEPATH%\\Documents\\photosPath.log"). But nothing happens. When I use my personal path then it works pretty well. But I want it to work on any computer....
Similar Messages
-
How can I make an image placed in the body tag expand to the entire width of the browser?
How can I make an image placed in the body tag expand to the entire width of the browser?I
background-repeat -- best used with small image tiles.
background-gradient - Ultimate CSS Gradient Generator - ColorZilla.com
background-size:cover - Resizable Full Page Background Image
Nancy O. -
How can i save some image- profiles in the memory (RAM) of a system?
How can i save some image- profiles in the memory (RAM) of a system?
(and then I want to read out the memory and save the profiles in a HDD, but first it has to write in a memory, because the write-speed is better by the memory )There must be an underlying premise for this question that I'm missing... When you run code everything is in memory... Programming 101. Create a variable, set a value to it, and it's in memory. Create a front panel control set a value to it and it's in memory. Data carried by the wires you use to connect your code is in memory. Or are you asking about controlling how that memory is managed - physical vs swap file?
-
How can i read a image from a oracle DB?
How can i read a image from a oracle DB?
Because in the DB a have a field that is a picture that i would like to show in a jpanel.....but this field is in oracle DB only has strange caracters ..... so Do i have to read this field like a input stream?....
Could some body help me please?
Thanks...
MaryWell I suppose the picture is stored in a blob. If that is so this is some code I have used to load a picture to a panel. Hope you find it usefull.
PreparedStatement retreive = db.createPreparedStatement("select bl from test where ln = ?");
Blob bl;
try{
retreive.setBigDecimal(1, new BigDecimal(jTFln.getText()));
ResultSet rs = retreive.executeQuery();
if (!rs.next())
System.out.println("Empty Result Set");
bl = rs.getBlob("bl");
if (bl == null) {
System.out.println("Null Blob");
return;
InputStream is = bl.getBinaryStream();
int imageLength = (int) bl.length();
System.out.println(imageLength);
System.out.println(bl.length());
byte[] imageData = new byte [imageLength];
is.read(imageData, 0, imageLength);
image1 = new ImageIcon(imageData);
photo = new JPanel() {
public void paint(Graphics g){
g.setColor(Color.lightGray);
g.drawImage(image1.getImage(), 0, 0, this);
} catch (BadLocationException ble){
ble.printStackTrace();
} catch (SQLException sqle){
sqle.printStackTrace();
} catch (IOException ioe){
ioe.printStackTrace();
} -
How can I redirect an image path outside a Web Application ?
Hi,
I think this is a quite simple question but I didn't find the precise answer on these forums.
I've deployed a WLP test portal 8.1, whose URL is http://host:7001/portalApp/, and my images are located here http://host:7001/portalApp/images/
In fact in my portal, a javascript located on another server references an URL which is http://host:7001/images/image.gif (I can't modify the script, but it takes the root /images/ path of the current server)
On the Weblogic server I would like to redirect the path /images to my /portalApp/images in order to display correctly the image.
I don't want to setup an Apache server just for this, and I believe there's an easier solution than to write a redirect servlet. I've red it is possible to modify the application.xml context-root but I don't know what to do precisely, I tried this :
<module>
<web>
<web-uri>/images</web-uri>
<context-root>/portalApp/images</context-root>
</web>
</module>
but it doesn't work...
Thanks for your help.
BVHi,
I am facing the same problem and looks this could be a solution.
I tried the approach but I get this error:
java.net.SocketException: Socket Closed
at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:177)
at java.net.Socket.setTcpNoDelay(Socket.java:771)
at weblogic.net.http.HttpClient.openServer(HttpClient.java:306)
at weblogic.net.http.HttpClient.openServer(HttpClient.java:355)
at weblogic.net.http.HttpClient.<init>(HttpClient.java:139)
at weblogic.net.http.HttpClient.New(HttpClient.java:212)
at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:14
0)
at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.
java:319)
at weblogic.net.http.SOAPHttpURLConnection.getInputStream(SOAPHttpURLCon
nection.java:28)
at java.net.URL.openStream(URL.java:913)
at weblogic.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityMan
ager.java:836)
at weblogic.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntity
Manager.java:796)
<06-Dec-2006 21:44:17 o'clock GMT> <Warning> <Deployer> <BEA-149004> <Failures w
ere detected while initiating Deploy task for application appsdirimages_war.>
Looks like I am missing some thing, say a servlet there.
Could you please explain how you got the images working?
Regards
Ashish -
How can I get a local path of the local disk with swf
Since FileReference.download() doesn't download multiple
files, I want to download files with php ftp_get by FTP.
I need to pass the local path of the local disk where I can
download the files from a remote serveur. How can I get a prompt to
have a user choose a folder on his computor (local disk), if any
way possible?OK, at least 3 is working.
I don't know how you have a Tape Recorder icon on your Home Screen. I cannot add one myself. But, I am running Holo Launcher in replacement of the default LG "Optimus" User Interface. It's much better in my opinion.
Try long pressing the icon and select Edit and maybe you can change some attribute of the icon.
Another thing you could do, is long-press an empty area of your desktop, to add an icon. Select Shortcut, then Select Contact, and scroll through your contact list and choose the contact that you added for *86.
You realize if you have voice mail you haven't heard, there is a tape recorder icon in the notification bar, which you touch and pull down, then press it to dial voicemail.
If that functionality doesn't work, you MIGHT want to consider doing a factory data reset on your device, but that is going to nuke all your personalizations and cause you work to set up again. -
How can I specify an area path for the work item created on build failure?
In our department we are working with multiple build definitions for different parts of one Team project. We heavily use the Team Project feature. Teams are defined by area path nodes, so each team can only see it's area path. No one (except the admins)
can see the root project node.
When a build breaks, TFS generates a Bug. Unfortunately, this bug is assigned to the area path root node, so nobody can see the generated bug and act on it.
We would prefer to specify the area path for the generated work item in the build definition (not template, but property of a build definition), as every build belongs exclusively to one team.
I have found that you can populate fields of the generated work item by filling the "custom fields" of the "create work item" activity. But how do I set the area path as a parameter?
GuenterHi Cuenter,
Thanks for your post.
You should set the value like below in that activity:
New
Dictionary(Of
String,
String)
From {{"Area
Path",
"teamprojectname\areaname"}}
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How can I read Extended APDU input to the same buffer
The following is the code I am currently using where inBuffer is an intermediate array of 1000 length. However, I do not want to allocate any buffers at all, and just want to send a command apdu of 1000 byte length and modify it in the code and return the modified buf in the response APDU.
// Read extended APDU input
byte[] buf = apdu.getBuffer();
short bytesRead = apdu.setIncomingAndReceive();
short dataOffset = apdu.getOffsetCdata();
// store first chunk in our intermediate byte array <-- how do i get rid of the intermediate array
Util.arrayCopyNonAtomic(buf, dataOffset, inBuffer, (short) 0, bytesRead);
// what is the overall length?
short overallLength = apdu.getIncomingLength();
short messageOffset = bytesRead;
if (bytesRead != overallLength){ // otherwise we're finished, all bytes received
short received = 0;
do{
received = apdu.receiveBytes((short)0);
Util.arrayCopyNonAtomic(buf, (short)0, inBuffer, messageOffset, received);
messageOffset += received;
} while(received != 0);
* REST OF CODE IN PROCESS METHOD
I have also tried replacing the above code with the following
short bytesLeft = (short) (buffer[ISO7816.OFFSET_LC] & 0x00FF);
if (bytesLeft < (short)55) ISOException.throwIt( ISO7816.SW_WRONG_LENGTH );
short readCount = apdu.setIncomingAndReceive();
while ( bytesLeft > 0){
// process bytes in buffer[5] to buffer[readCount+4];
bytesLeft -= readCount;
readCount = apdu.receiveBytes ( ISO7816.OFFSET_CDATA );
as shown in the javadocs API, but it does not compile.
This is my command APDU:
/send 800100000003E8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003E8
As you can see:
CLA - 80
INS - 01
P1 & P2 - 00
LC - 0003E8
Data - 1000 0s
LE - 03E8
I am using JavaCard 3.0 with JCOP in Eclipse. How can I read the extended length apdu to the same buffer? I have no problem in returning an extended length response APDU. Thanks a lot for the help.You should not call the convenience method setIncomingAndReceive() in your first code. Please find out about the different APDU states. Furthermore, your Applet should implement the ExtendedLength tagging interface.
-
How can I link an image without leaving the existing window in adobe acrobat??
Hi everybody
I'm new using adobe acrobat, but I saw (once) that in a manual, they linked a image.
Just by passing the mouse over the linked word, the image appears "over" the pdf, without leaving the existing window
Is this still possible?? and How??
Thanks for your helpIf you need to do it very often, I've developed a web-service that allows
you to enter a phrase (let's say "Product 1"), and have an image "pop-up"
whenever the user hovers or clicks that phrase in your document. Contact me
personally for more information. -
How can I read *.pcx Image ?
Hello!
Now, I want to read and save pcx image.
I use jimi1_0 and its sample that name is JimiBrowserApp.
I load jpg image, and I can save as pcx image.
But, then, I try to read the same pcx image, I can't.
why?
Do you have any idea ?
please help.Hello,
Once I thought that I could solve a problem.
I use PcxReader,
http://www.burgsoft.com/PcxReader/
I can read pcx image of 256colors, fullcolor, grayscale...
But I can't read pcx image of 2colors(black and white).
help -
How can I read a image file through URI?
I have a image file store in my computer's Image directory on drive E. I name the pathname as:
file:////MyComputerName/e:/image/
the image filename is MyImage.JPG
so I create a ImageIcon use:
String uri = "file:///MyComputerName/e:/image/";
String imagefilename = "MyImage.JPG";
ImageIcon ii = new ImageIcon( uri+imagefilename);
Image myimage = ii.getImage();but I can not get the image.
Does anyone know what's wrong?
Thank youRead the documentation for ImageIcon(String path) -- the String is a file path,
not a URL. If you want to pass a URL to ImageIcon, use ImageIcon(URL url).
So, either of the following works:
URL url = new URL("file:///e:/image/MyImage.JPG");
ImageIcon imageIcon1 = new ImageIcon(url);
String path = "e:/image/MyImage.JPG";
ImageIcon imageIcon2 = new ImageIcon(path);In case you even need it, to convert a file into a URL, you can write:
URL url = file.toURI().toURL();And finally, you may want to check out BufferedImage and ImageIO.
You can read in a BufferedImage in one line:
BufferedImage image = ImageIO.read(file_or_url_etc);and a BufferedImage offers may advantages over a plain old image. -
How can I add one more path in the classpath tag in xml
I have added the following line in the global-web-application.xml, and it works.
<classpath
path="/apps01/o9ias/j2ee/home/default-web-app/WEB-INF/properties"
/>
But whenever I add one more path into it, the oc4j can't start.
The Oracle manual Oracle9iAS Container for J2EE is beta. It doesn't tell the grammer to do that.
Hopefully you can share some ideas and let me know how to add some more path into it.
Thanks.
WeiHi Wei,
I have just done a quick search of the following URLs
http://www.orionserver.com
http://www.orionsupport.com
http://www.atlassian.com
http://www.elephantwalker.com
And -- as is nearly always the case -- found a shamefully minute amount
of information, and what I did find was totally useless.
Oracle have not produced any real documentation for OC4J -- they
claim it's coming in the next release -- and, as I already said, I
couldn't find anything on the Internet about "global-web-app.xml" or
"classpath" element. Therefore (surprise, surprise) your only option
(as I see it) is just experiment and try to hack the code.
I wish someone would please tell me if there's another option, because,
like you, I find it very frustrating to have to continually play
"guessing games" when trying to work with OC4J. I imagine other people
seem to enjoy this -- since I don't see anyone else complaining.
In any case, have you tried multiple "path" attributes, for example:
<classpath path="/your/path/" path="/your/other/path/"/>
Got nothing to lose, have you :-)
Good Luck,
Avi. -
How can I send an image directly from the browser as an attachment, not a link?
I'm wondering if there's a way-- either via some kind of add-on or a direct FF customization-- to send an image as an attachment rather than as a link? either right-clicking an image and selecting "send image" or dragging an image into a "new message" window in outlook for example merely adds a link to the image and I'd rather that the image itself was added as an attachment. this functionality is available in IE as "email picture," which is extremely useful.
thanks for any insight here.It was not mentioned what the client is. If it is a browser, the image can be sent using hml img tag. If it is using streams, then u need to set content type to image/gif or image/jpg ( depending the image u r sending) using response obj.
response.setContentType("image/gif");
Bye... -
How Can I replace an image and save the same size as the previous?
I want to replace an image in a PDF, but I would like to keep the same size, and location as the previous. I have tried to to it, but the new image takes a different size.
This is a PDF exported from an InDesign template.Thank you.
The problem is that the person to edit the PDF doesn´t have ID and doesn't know how to use it.
The idea is that the design department create very sharp ID templates for people from other departments of the company only have to replace information (text and image).
We are looking for a program to edit PDF files and function as templates forreplacement information. -
Also how can you get an image preview in the video section
The music videos you buy in iTunes come with a preview that is displayed. I tried capturing an image with VLC, then converting it to a JPEG. But the when I "get info" and try and drop or paste the image it won't allow me. Any Tips?
The music videos you buy in iTunes come with a
preview that is displayed. I tried capturing an
image with VLC, then converting it to a JPEG. But
the when I "get info" and try and drop or paste the
image it won't allow me. Any Tips?
To set "poster frame"
-Play video in iTunes
-Click on video so it brings up a 2nd window (its own window)
-Locate the "frozen picture" by pausing. You can manually shift through the whole video by using slider.
-When you have your picture, right click, and choose "set poster frame".
Maybe you are looking for
-
Duplex Printing Problem - Word 2007, Vista and HP Officejet Pro L7780
I'm having trouble with duplex printing on my new HP Officejet Pro L7780, from Word 2007, running on a brand new Vista system. I've also had this same problem (repeatable) with two other computers, running XP Professional/Word 2003, XP Home/Word 200
-
Advantages of using J1IS instead of J1IIN for excise invoice during stock t
Hi, what are the advantages of using J1IS instead of J1IIN for excise invoice during stock transfer order....using delivery. Please clarify clearly. Regards, Dharani
-
Issue with Pasting screenshot in Mail in OS X
Hi, Not sure if anyone experiencing this problem. recently I noticed this issue after I have upgraded OS to OS X 10.10.1 where if I take screenshots using Command+Control+Shift+4 and paste it immediately into MAIL, then image is compressed that when
-
Problems in using Labview DLL with TestStand!
Hi, I tried to put the VI's to create a TCP/IP Connection, read/write Data to it and close it inside a LabVIEW DLL and use these functions with TestStand. The problem is to get access to the ConnectionID generated as TCP Network Refnum in LabVIEW. I
-
Problems printing from other programs after printing using Word automation
I have an application that uses ActiveX to build a Word document. My print VI is attached. The problem that users are reporting is that after printing a report with my application, they can't print from any other programs until they restart their com