Exporting a jpeg in background thread: ID CS5
Hi All,
I am working on a plugin for CS5 and CS5.5, My plugin requirement is that it should export a document to pdf and jpeg format on background thread, On looking into CHM I found that there is a article "Asynchronous exports, Multithreading" which says that only IDML and pdf are the two formats that can be export in background thread.
Is is possible eto export a document in JPEG format on bakground thread? if yes then should I need to follow aproach mentioned in chm article "Asynchronous exports, Multithreading" or there is some other way to do it.
Please help me to find out a way using which I can achieve this.
Thanks
Alam
topfuelmaniac,
I believe the issue will be solved if both the artwork and the Artboard are aligned with the pixel grid.
The Transform Palette has the option Align to Pixel Grid.
The artwork may be off, and if so, it is better to align it properly than to snip off parts to fit the size it should have from the start.
If you have portions of the artwork, such as parts of strokes, outside the Bounding Box, you may have to rethink. You can turn on Use Preview Bounds in the preferences to see the real size to be exported.
Similar Messages
-
Using Quicktime Export option in a background thread?
Hi,
I'd like to use Quicktime Pro's export option to convert some files in background, possible? any sample codes? thanks.
AngeloHi,
Take a look at this thread in the Applescript forum for sample code to export files via QT Pro.
Ed -
No longer able to export in JPEG-B
I have this vexing issue that I cannot figure out. I can no longer export as JPEG-B. It has vanished from the list of available formats to export to. I have tried deleting the preferences and restarting the system. But no luck. Anyone have any suggestions. Or have a similar problem.
I was able to find a solution in this thread:: by lkrupp http://discussions.apple.com/thread.jspa?threadID=1344019&tstart=300
-
Picture has noise after export to JPEG
Hey guys,
I am using Lightroom 5.2 64bit version on my windows. After I export my raw in to the jpeg it has noise. But in the develop module it hasn´t. Also it has got a little bit noise in the library, but it´s the same picture. Where is the sense?
Here are some pictures of that problem:
1. The finally edited raw picture which I want to export.
2. The view from the library, you can see a little bit difference on the quality compared to the view from the develop module.
3. The jpeg after the export.
4. My export settings.
I don´t know what to do! I´ve googled a lot but nothing found.
Please help me and post any ideas.
Lovely regards
iAmAzInGI have the same problem (OS X). Exporting to jpeg results in poor quality. This is a problem I didn't had with previous versions.
I took a look at the other threads which are mentioned here and effectively, the 1:1 view looks exactly like the jpeg export.
But this would be like looking at a 5x6 meter poster from two inches distance, which makes no sense. If you look from a 1 meter distance,
it is logic that you will see a bit less noise, things will look smoother.
This really is an issue. I always had an export and a print that looked exactly like how I saw it in 'fit' view in develop screen in previous versions.
It is completely stupid to be obliged to work in 1:1 mode for developing photos as this is the only option from what I read.
The image ont the left is a screenshot (apple+shift+4) from a jpeg export, 72 dpi, 1288px large side.
The image on the right is a screenshot (apple+shift+4) from a screenshot (apple+shift+4) from de the dev screen in LR, 'fit' view mode, 72dpi 1288px large side.
Both have a different size here because I didn't draw the same sized rectangles when taking the screen shot.
As you can see, there is a lot of noise that I don't see in the dev screen. The screenshot on the right is almost exactly what I see, except that it is a bit less sharper
due to jpeg compression, but it still is a better result than the compression of Lr itself. Should I process like this now instead of using export????
I loose sharpness but it has an overall neater look. The jpeg export is really crappy!
I did used a tiny bit of noise reduction and sharpening (23 - 22 respectively) and this has been shot at ISO 800, 5D miii.
The crop applied in Lr is maybe 8-10% so really not much. I avoid cropping as much as possible.
I updated to 5.3 and issue is resolved for me -
OK, I have a very interesting question for you experts out there:
After doing a blue-screen shot, I wanted to put just a flat color as the background and fade from one color to the next as the subject acts in front of the blue-screen.
I made the colors in Adobe Photoshop using an old image and just painting it over with whatever color I want. After making several, I went to add them as the background in Adobe CS5 and it worked fine.
The problem I encountered is this: When I put the first color background in (let's say brown), then I go to add another colored background from the same source file where I stored all the different backgrounds, it keeps bringing up the "brown" background again. It says it's the "pink" background, but it shows brown and drags into the scene as brown. No matter what I do, even putting the original brown background into a different source file, it keeps bringing up the brown one again and again.
Very strange dilema, and I have no idea how to solve it.
Do any of you guys know what the problem is? Have any of you run into this kind of thing before? Is there a solution?
It can't be the computer or CS5 'cause they're both brand new, so it's obviously ME not knowing what the hell I'm doing......
Thanks for any help and advise.I have not seen an issue with JPEG's, BUT... I seldom use them, and I do not have CS5 installed yet. As Colin mentions, there does seem to be a glitch (?) with some JPEG's.
Glad that the TIFF's work for you. When doing almost anything in PS, that will go to Video, I keep the format PSD, and will either Import as Footage, if I don't care about my Layers (this will Flatten the Layers), or as a Sequence, should I want the Layers. In the workflow that you outline, I'd probably create the one Image (good move to set this up per the Frame Size of the Project, BTW), and just do a Layer for each "background." Then, I'd Import as a Sequence, and just drag each Layer to the main Sequence, as needed.
The suggestion to use Color Mattes is also a good one, though if one wants a different look, than just a flat color, PS can allow all sorts of creative functions/Filters to alter that color from "plain-vanilla" to something "other worldly."
Good luck, and thanks for reporting that the TIFF's work for you!
Hunt -
book export to Jpeg doesn't work annymore
Hello,
Ligtroom 4.4 64bit
is that enough information? or do you have any other information?
Like to see a response.
Groet Sanne Steenbreker
From: [email protected]
To: [email protected]
Subject: RE: Book Export to jpeg
Date: Thu, 24 Oct 2013 12:05:05 +0200
Ligtroom 4.4 64bit
Date: Wed, 23 Oct 2013 14:56:20 -0700
From: [email protected]
To: [email protected]
Subject: Book Export to jpeg
Re: Book Export to jpeg
created by Geoff the kiwi in Photoshop Lightroom - View the full discussion
Could you please supply some information so we can attempt to resolve your issue. Such as lightroom version and operating system.
Thanks....
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5783614#5783614
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5783614#5783614
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5783614#5783614. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Photoshop Lightroom at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746. -
InDesign has stopped exporting to JPEG and I don't know why?
InDesign (version CS6) has stopped exporting to JPEG and I don't know why. but really need it for work - does anyone have any ideas of how to fix? Thank you
Troubleshooting 101: Replace, or "trash" your InDesign preferences
http://forums.adobe.com/thread/526990 -
The background thread running lazy writer encountered an I/O error
Hi I have a test server which has thrown the following error
File system error: A system error occurred while attempting to read or write to a file store. The system might be under memory pressure or low on disk space. Physical file: \\?\F:\MSAS11.DEPLOYAS\OLAP\Data\Prod_KCube.0.db\DIM Flags And Types.0.dim\3.Flag
Types Key.khstore. Logical file: . GetLastError code: 8. File system error: The background thread running lazy writer encountered an I/O error. Physical file: \\?\F:\MSAS11.DEPLOYAS\OLAP\Data\Prod_KCube.0.db\DIM Flags And Types.0.dim\3.Flag Types Key.khstore.
Logical file: . Errors in the OLAP storage engine: An error occurred while processing the 'Facts' partition of the 'Main Facts' measure group for the 'Prod_Cube' cube from the Prod_KCube database.
The cube sits on a not very well maintained server which is used by various users (it is a test server) with the following specs
Intel(R) Xenon(R) CPU x5690 @3.47GHz
24GB Ram
64 Bit operating system.
The Cube data and logs are on separate drives and have plenty data but the C drive (where SQL Server is installed) only has3.5Gb of space left.
It's a fairly big cube and I've managed to get it running by processing dimensions and facts bit by bit but errors when processed all together.
What could be causing the errors above?Hi aivoryuk,
According to your description, you get the lazy writing error when processing partitions. Right?
In this scenario, the issue may cause by low memory for SSAS and lack of disk space. Please consider configure
Server Properties (Memory Page) and increase
memory setting for SSAS. If the .cub file is located in C drive, please reserve more disk space.
Please refer to a similar thread below:
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/21bf84c5-f89a-464a-a5f1-2649fae5eb1e/while-processing-large-cubes-various-file-system-errors-the-background-thread-running-lazy-writer?forum=sqlanalysisservices
Best Regards,
Simon Hou
TechNet Community Support -
How do you monitor a background thread and update the GUI
Hello,
I have a thread which makes its output available on PipedInputStreams. I should like to have other threads monitor the input streams and update a JTextArea embedded in a JScrollPane using the append() method.
According to the Swing tutorial, the JTextArea must be updated on the Event Dispatch Thread. When I use SwingUtilities.invokeLater () to run my monitor threads, the component is not redrawn until the thread exits, so you don't see the progression. If I add a paint () method, the output is choppy and the scrollbar doesn't appear until the thread exits.
Ironically, if I create and start new threads instead of using invokeLater(), I get the desired result.
What is the correct architecture to accomplish my goal without violating Swing rules?
Thanks,
Brad
Code follows:
import java.lang.*;
import java.io.*;
import javax.swing.*;
import javax.swing.text.*;
import java.awt.*;
import java.awt.event.*;
public class SystemCommand implements Runnable
private String[] command;
private PipedOutputStream pipeout;
private PipedOutputStream pipeerr;
public SystemCommand ( String[] cmd )
command = cmd;
pipeout = null;
pipeerr = null;
public void run ()
exec ();
public void exec ()
// --- Local class to redirect the process input stream to a piped output stream
class OutputMonitor implements Runnable
InputStream is;
PipedOutputStream pout;
public OutputMonitor ( InputStream i, PipedOutputStream p )
is = i;
pout = p;
public void run ()
try
int inputChar;
for ( ;; )
inputChar = is.read();
if ( inputChar == -1 ) { break; }
if ( pout == null )
System.out.write ( inputChar );
else
pout.write ( inputChar );
if ( pout != null )
pout.flush ();
pout.close ();
else
System.out.flush();
catch ( Exception e ) { e.printStackTrace (); }
try
Runtime r = Runtime.getRuntime ();
Process p = r.exec ( command );
OutputMonitor out = new OutputMonitor ( p.getInputStream (), pipeout );
OutputMonitor err = new OutputMonitor ( p.getErrorStream (), pipeerr );
Thread t1 = new Thread ( out );
Thread t2 = new Thread ( err );
t1.start ();
t2.start ();
//p.waitFor ();
catch ( Exception e ) { e.printStackTrace (); }
public PipedInputStream getInputStream () throws IOException
pipeout = new PipedOutputStream ();
return new PipedInputStream ( pipeout );
public PipedInputStream getErrorStream () throws IOException
pipeerr = new PipedOutputStream ();
return new PipedInputStream ( pipeerr );
public void execInThread ()
Thread t = new Thread ( this );
t.start ();
public static JPanel getContentPane ( JTextArea ta )
JPanel p = new JPanel ( new BorderLayout () );
JPanel bottom = new JPanel ( new FlowLayout () );
JButton button = new JButton ( "Exit" );
button.addActionListener ( new ActionListener ( )
public void actionPerformed ( ActionEvent e )
System.exit ( 0 );
bottom.add ( button );
p.add ( new JScrollPane ( ta ), BorderLayout.CENTER );
p.add ( bottom, BorderLayout.SOUTH );
p.setPreferredSize ( new Dimension ( 640,480 ) );
return p;
public static void main ( String[] argv )
// --- Local class to run on the event dispatch thread to update the Swing GUI
class GuiUpdate implements Runnable
private PipedInputStream pin;
private PipedInputStream perr;
private JTextArea outputArea;
GuiUpdate ( JTextArea textArea, PipedInputStream in )
pin = in;
outputArea = textArea;
public void run ()
try
// --- Reads whole file before displaying...takes too long
//outputArea.read ( new InputStreamReader ( pin ), null );
BufferedReader r = new BufferedReader ( new InputStreamReader ( pin ) );
String line;
for ( ;; )
line = r.readLine ();
if ( line == null ) { break; }
outputArea.append ( line + "\n" );
// outputArea.paint ( outputArea.getGraphics());
catch ( Exception e ) { e.printStackTrace (); }
// --- Create and realize the GUI
JFrame f = new JFrame ( "Output Capture" );
f.setDefaultCloseOperation ( JFrame.EXIT_ON_CLOSE );
JTextArea textOutput = new JTextArea ();
f.getContentPane().add ( getContentPane ( textOutput ) );
f.pack();
f.show ();
// --- Start the command and capture the output in the scrollable text area
try
// --- Create the command and setup the pipes
SystemCommand s = new SystemCommand ( argv );
PipedInputStream stdout_pipe = s.getInputStream ();
PipedInputStream stderr_pipe = s.getErrorStream ();
// --- Launch
s.execInThread ( );
//s.exec ();
// --- Watch the results
SwingUtilities.invokeLater ( new GuiUpdate ( textOutput, stdout_pipe ) );
SwingUtilities.invokeLater ( new GuiUpdate ( textOutput, stderr_pipe ) );
//Thread t1 = new Thread ( new GuiUpdate ( textOutput, stdout_pipe ) );
//Thread t2 = new Thread ( new GuiUpdate ( textOutput, stderr_pipe ) );
//t1.start ();
//t2.start ();
catch ( Exception e ) { e.printStackTrace (); }
Thanks for pointing out the SwingWorker class. I didn't use it directly, but the documentation gave me some ideas that helped.
Instead of using invokeLater on the long-running pipe-reader object, I run it on a normal thread and let it consume the output from the background thread that is running the system command. Inside the reader thread I create a tiny Runnable object for each line that is read from the pipe, and queue that object with invokeLater (), then yield() the reader thread.
Seems like a lot of runnable objects, but it works ok. -
Raw files saved to jpeg via bridge but now some jpegs won't open in CS5
I saved Raw files to jpeg via bridge but now some of the jpegs won't open in CS5, they only open in bridge? How do I get them to open up in photoshop instead?
I'm not quite sure of your workflow, but here's a couple of things to try:
1. Make sure the folder to be batch processed contains only JPEGs.
2. In Bridge, go to Camera Raw Preferences (not Bridge Preferences) and change JPEG and TIFF Handling to Disable JPEG support. This should ensure that all JPEGs open directly in Photoshop. -
Failed to export the JPEG file
When I attempt to export a jpeg from InDesign I get the following error message, please help:
"Failed to export the JPEG file: File cannot be written.
Disc may be locked or full."
The disc it is writing to has 90Gb of memory free and I've tried knocking the quality of the export down with no success.
I am running CS6 on a fully updated Macbook Pro.
Thanks.I'm trying to export to the hard drive on the Mac as usual, and have never had this issue before?
-
I get this error "Failed to export the JPEG file. File cannot be written. Disk may be locked or full." when sending small (3"x3") and large (40"x60") files to a printer hot folder. Sometime if I close the program and restart it will let me export. What could be causing this to happen?
I am on Windows 7 with 4GB RAM PC.I guess the printer is grabbing the file before it is entirely written…
Workaround: Do not save to a hot folder. Move the files after exporting to the hot folder.
Uwe -
[CS2 AS] Export as Jpeg... image missing in the output.
Hi,
I'm using alot the export as jpeg feature as a validation helper while doing batch processing (for quality output, i have used export as pdf and rasterisation in photoshop... require more processing, but it give more reliable output).
So with the base export, i'm having a odd problem where on other machine the some images are not exported appropriately (some appear with a white strippe and other completely blank).
I have not found documentation on this but i'm pretty sure that the export is done from a low-res preview, so i suspect that that my script processing make the export before indesign has completed some document display refresh.
I tought that i could use a arbitrary delay, but i find this solution quite inconvenient as it make the process slower and not completely deterministic.
Is there a equivalent call to "recompose" that would let me be sure to call the export when the display refresh of the document is done? (if i remember well, i have tried forcing the document quality display to maximum).
Thanks for any ideas! :)
EricOn 5/2/09 6:22 AM, "EricGagnon" <[email protected]> wrote:<br /><br />> Thanks for any ideas! :)<br /><br />Are you sure you're using the most recent version of CS2? And are you sure<br />all the links are present and up to date?<br /><br />-- <br />Shane Stanley <[email protected]><br />AppleScript Pro Florida, April 2009 <a href=http://scriptingmatters.com/aspro>
-
need some help here. don't know if i can describe this accurately.
i was using lightroom previously. edit my raw file and then export in jpeg. everything appear normal as what i wanted.
recently i got cs4 and started using bridge. now after i edit my photo in lightroom and export,the view of the jpeg file appears overexpose(exposure was increase) and when view on adobe bridge same problem. but if i open photoshop and use my workspace colour setting everything is ok. when i see my picture on iphoto it is normal as per i have edited. i just don't know what setting i have touch that cause my viewing of edited photo on lightroom and bridge goes overexpose. on bridge,thumbnail ok but preview bad...
for the record: i just install CS4 and snow leopard recently. before this i have no problems with LR. I'm also not sure if i have accidentally change any settings.
i shoot with a 5D mark 2 and use the raw file for edit.
will appreciate any advise. Thanksgrjacek wrote:
Is it possibe to return to a RAW image and edit it once I've exported it to another location as jpeg?
Yes
I've edited and exported an image to a different folder on my desktop. I've realised I still need to do some work on it
but when I try and open it again in Lightroom ( I see it in Library) I get a mesaage saying file not found...Please help
We're going to need a lot more details aobut exactly (EXACTLY) the steps you follow after you do the export, because normally I would say this is one of the easiest things possible in Lightroom. Are any files moved or renamed or disks unplugged in between the time of export and the time when you try to edit again? -
Background threading + batch file processing
Hello,
I have 2 issues in the same project.
Issue 1:
I have a project accessing the Object API. I've created a DLL assembly using VB.NET. This assembly is instatiated from a VB form and one of the functions is called using a background thread worker from the from. This code runs normally when NOT running in the background worker. However running in the background worker throws an exception. I have attached some sample code. To test it would will need to create the an interop for the Object API compenent for GroupWise. It ws too big to attach here. My apologizes for that.
Issue 2:
In the same project using the same assembly, I am calling the application from a batch file. Again the code runs normally from the debugger, but running the batch file throws an exception instantiating an instance of the Application object.
If anyone can shine some light on these issues that would be great.
Thanks
TimHiroto, no I didn't have it checked. I don't know why I was able to get as far as I did but enabling access for assistive devices didn't change anything. I am able to emulate /almost/ any keystroke, except the up arrow, which normally allows me to move up in the "file type" selector button. The script below is ... functional ... except that it forces me to save each file as a 58MB uncompressed .tiff, and it refuses to respond to the "close front window" or 'keystroke "W" using command down' scripts. Getting through 300+ files this way will eat up my memory and hard drive in a matter of minutes. I suppose I could '$sh kill ####' from terminal if I could find the window process, but this is getting really hoaky!
THIS SCRIPT OPENS AND SAVES FILES, BUT DISALLOWS ANY TYPE SELECTION OR CLEANUP
set sFiles to (choose file with multiple selections allowed without invisibles)
repeat with aFile in sFiles
tell application "Preview" to run
tell application "System Events" to tell process "Preview"
tell application "Preview"
activate
open aFile
delay 8
tell application "System Events"
keystroke "S" using {command down, shift down}
delay 2 -- opens save as sheet
repeat 7 times
keystroke tab -- tab down to file selector (works fine)
end repeat
click down -- select button (doesn't do anything)
delay 1
keystroke up -- open file button menu (doesn't work)
keystroke up -- select next menu item above (doesn't work)
keystroke return -- shortcut to "save" button
delay 10 -- wait for save
keystroke "W" using command down -- close current window (doesn't work)
end tell
end tell
end tell
end repeat
Maybe you are looking for
-
SuPM home page getting stuck and couldnt able to enter
Dear All, Greetings.... we are not able to enter into SuPM home page and getting stuck while its loading.. due this cause, we have installed flashplayer_10_ax_debug (No flash player exist earlier). Now while loading SuPM home page in Portal, its disp
-
Function Module RSDRI_DATA_WRAP_V
BI Experts, As part of BI 7.0 SAP has delivered a Function Module 'RSDRI_DATA_WRAP_V' which is basically called by the Function Module 'RSDRI_INFOPROV_READ_RFC'. In our particular case we are exposing FM ' RSDRI_INFOPROV_READ_RFC' as a web service. U
-
When I download a PDF file in Firefox, the file name changes from whatever name source used (e.g, important-report.pdf) to a miscellaneous group of characters (e.g., X2ba5zt.pdf). I often want to save the file using the 'source' name. I realize that
-
Create Workflow template using WebPartPagesWebService
Hello, I'm using SharePoint web service "WebPartPagesWebService", I used the method ValidateWorkflowMarkupAndCreateSupportObjects() to create a workflow template. below is my method: string DefinitionFile = @"C:\Users\Administrator\Desktop\WorkflowFo
-
Problem with lotus portlet in pdk nov 2002
hi! i've downloaded pdk novemeber 2002 and installed the new lotus portlet in it. but upon testing the external application link, the following error is shown: An error has occured in this Application java.lang.NullPointerException at oracle.portal.i