PDF to JPEG with Higher Resolution
I have a simple script that takes a FileMaker layout, exports it as a PDF and uses AppleScript and Image Events to convert that PDF to a JPEG. It works, but the resolution of the JPEG is much lower than that of the original PDF. Here's the code that does the conversion:
tell application "Image Events"
launch
set fileRef to open tempFile
save fileRef as JPEG in destFilePath
close destFilePath
end tell
The final JPEG has a resolution of 72dpi. I've looked through the Image Events dictionary and there is a read only property of resolution. Would it be better to use another application or perhaps some sort of command line utility to get this job done without the resolution loss?
Thanks,
Chuck
OK, I read some of the man page for sips, and found the -g option for getting a property. I ran the following commands:
sips -g dpiHeight 00127.pdf
sips -g dipHeight 00127.jpg
Both report that the dpi is 150.000. However, when I open both files in Preview and place them side by side, and magnify the image three times using Cmd-+, I see pixilations of the JPEG file but not the PDF image. This is what lead me to believe that I was losing resolution. I can zoom in quite far with the PDF (10 times or so) and see details. With the JPEG I lose the detail after very few zooms.
So, perhaps it's not losing resolution, but something else is happening?
Thanks,
Chuck
Similar Messages
-
I recently have bought a new Macbook Pro (Version 10.10.1) with the OS X Yosemite. The computer comes with the new Pages (version 5.5.1).
Here is the problem: I like to create artwork using the shapes on Pages. Previously, on my old mac, I used Pages 4.3 to create objects, which I would copy then paste to Photoshop and it would become a vector smart object. However, in the new Pages (version 5.5.1), when I copy objects, they would appear on Photoshop as instead, a layer and it would not be in full resolution.
Also, I know there is nothing wrong with the Pages file itself because I have converted the document to PDF form and it is high resolution when inserted into Photoshop that way.
Does anyone know how I can copy individual objects from Pages (5.5.1) and paste it into Photoshop as a vector smart object with high resolution as I have done before?
Thanks!ghotiz wrote:
copy the image and have it in a high-quality PNG format that does not include the background from the Pages document.
Oh, well if you don't actually need vector objects then it looks like this is possible. As I said earlier, Pages is putting a PNG on the clipboard. I tested it and it does paste into Photoshop as a transparent layer, because I can see the transparent background of the pasted PNG graphic if I either turn off all layers behind it in Photoshop, or if I start a new Photoshop document to paste into but make sure I choose Transparent for the Background Contents in the New Document dialog. -
Save file with high resolution progamatically
Hello,
I'm trying to export the document to JPEG and PNG formats with a resolution of 300 DPI. I'm using the following code:
PIActionDescriptor desc00000178 = NULL;
error = sPSActionDescriptor->Make(&desc00000178);
if (error) goto returnError;
PIActionDescriptor desc00000180 = NULL;
error = sPSActionDescriptor->Make(&desc00000180);
if (error) goto returnError;
error = sPSActionDescriptor->PutInteger(desc00000180, keyExtendedQuality, 10);
if (error) goto returnError;
error = sPSActionDescriptor->PutUnitFloat(desc00000180, keyResolution, unitDensity, 300.00);
if (error) goto returnError;
error = sPSActionDescriptor->PutEnumerated(desc00000180, keyMatteColor, typeMatteColor, enumNone);
if (error) goto returnError;
error = sPSActionDescriptor->PutObject(desc00000178, keyAs,
classJPEGFormat, desc00000180);
if (error) goto returnError;
Handle aliasValue = NULL;
FullPathToAlias("C:\\temp\\Myfile.jpg", aliasValue);error = sPSActionDescriptor->PutAlias(desc00000178, keyIn, aliasValue);
if (error) goto returnError;
error = sPSActionDescriptor->PutBoolean(desc00000178, keyCopy,
true);
if (error) goto returnError;
error = sPSActionControl->Play(&result, eventSave, desc00000178, plugInDialogSilent);
if (error) goto returnError;
returnError:
if (result != NULL) sPSActionDescriptor->Free(result);
if (desc00000178 != NULL) sPSActionDescriptor->Free(desc00000178);
if (desc00000180 != NULL) sPSActionDescriptor->Free(desc00000180);
if (aliasValue != NULL) sPSHandle->Dispose(aliasValue);
return error;
The file gets saved in the desired format but the resolution is always 72 DPI. Is there something i'm missing while exporting the file with higher resolution?
Please help..
ThanksWhy are you adding a resolution value to the save command?
It doesn't take or understand a resolution value.
You need to set the resolution on the document first, then save. -
Replace photos with higher resolution versions?
A professional photographer sent me a DVD with about 1,000 photos on it from an event I hosted. I imported them all into iPhoto and made a couple of photo books out of them (but didn't yet get them printed). I noticed the resolution wasn't what I expected, so the photographer sent me a new DVD with higher resolution versions. Same filenames. Is there any way to import the new versions into iPhoto, replacing the old ones? Ideally they would appear in the photo books, too! I'd hate to have to spend hours recreating what I did.
Thanks!I don't think so, iPhoto is designed to prevent "collisions" between similar file names, so you can't just import them. You would have to do major surgery to the iPhoto Library, which is not a good idea. And still might not work.
I think you should just re-import and start over. -
Hi the fnt size in the menu bar is too small (unreadable). How can I increase the font size. I have a new Samsung PC with high resolution screen.
You must mean Photoshop Elements 11, not Photoshop.
There is no ability to change the size of the menu font in PSE 11.
note to mod:
Please move to the Photoshop Elements forum. -
Slow performance with high resolution external monitor
Hello,
I recently bought HP EliteBook 840 G1, i7-4600U, 8gb ram, HD intel graphics 4400, 256GB SSD.
Everything would be fine, but when I connect my 30" Dell monitor with 2560x1600 resolution as an external monitor, the performance of the computer drops significantly to the point where it becomes unconvenient to work with programs that require more resorces.
I understand that it might be due to limitations of the hardware (most probably graphic card is too weak ? ), but still I'd like to ask if there is anything I could do to boost the performance of HP Elitebook with high resolution external monitor.Hi, you should use renderMode = gpu in your application descriptor xml file, especially for latest android devices. But gpu is not a good idea for old devices, so you may also try renderMode = direct.
Honestly, I don't think those android devices made in china have good performance, especially gpu. -
Color printing with high resolution in smartforms
Hello colleagues...
I need to print color images with True-color resolution, but in Form Graphics Administrator ( transaction SE78 ) I can only upload pictures with extension TIFF and BMP, and with resolution 24-bit maximum.
With this resolution, the quality of colors will not be optimal because is distorted from original.
This printing we need for labels that have pantone code of colors, that should not be changed to any similar tones.
Does anybody knows how can I print true color pics with smartforms without reducing image quality?
Or exist any other tool in SAP for printing with high quality?
thanks in advance,
Ibrahim Andres.You can upload TrueColor 24 bit Bitmaps into SE78, but SE78 converts them to 256 color images, that's why you see reduces quality when the image is printed. I think it's not possible to print images higher than 256 colors using existing smartform technology.
Regards
Sridhar -
Nokia N86 - AVI/MP4 with higher resolution
hi, I have a new N86 - very pleased with it do far. One thing I'd like to do though, is use the TV-out to play video files on a TV almost like a DVD player (eg to watch a film in a hotel through the phone). It works for "normal" MP4 files that have a resolution less than the mobile can view, but it didn't play a higher resolution clip that would be needed to get a decent picture on a TV. Is there anything I can do about this? I think I saw somewhere that Coreplayer may be able to play AVI files around 700mb, which may do it.
Yep, just get a core player. Its not free though.
If you find my post helpful please click the green star on the left under the avatar. Thanks. -
Performance issues for iOS with high resolution.
I made an app with a resolution of 480x320 for iOS. It works quite well.
I then remade it with a resolution of 960x640. In AIR for iOS settings I set Resolution to "High".
The app looked great, however there was a noticeable drop in performance.
The app functioned the same way as the original lower resolution app. but it was lagging.
Has anyone else had this problem?
Am I doing something wrong?With my game, I had around 60fps on the 3GS, and around 50 on the iPhone 4, with the high settings. I got around 10 fps extra by using: stage.quality = StageQuality.LOW;
Air 2.6. I tried with Air 2.7, but it seems like that command can't be used there (?) -
Infrared picture with high resolution
I'm very familiar with LabVIEW programming, have set up a couple of applications with ordinary cameras, but have never worked with IR before. Now I'm interested in a infrared picture with as high resolution as possible, and I don't really need a video-film, one picture every 10 seconds is probably more than good enough. What's out there on the market for anything like this ?
MartinIf by IR you mean thermal, high resolution and high cost are the norm.
FLIR is probably the largest supplier. you can get HD resolution from a FLIR SC8300, but the cost in $200K+. The FLIR SC line typically have resolutions of 640x512, but they are cooled cameras, which is part of the reason why they are so expensive.
On the lower end, still at around 640x480, you have the A615, around $20K, or the A65 at around $9K. The A6x5/A3x5, and Ax5 series cameras all support GENiCAM, and work very well with NI Vision Development Module.
Machine Vision, Robotics, Embedded Systems, Surveillance
www.movimed.com - Custom Imaging Solutions -
Re-download Video's With Higher Resolution?
Is there any way to re-download all my old videos from iTunes with the new, higher resolution? Or am I going to be stuck with the crappy quality? Any help would be great, thanks.
Is there any way to re-download all my old videos
from iTunes with the new, higher resolution? Or am I
going to be stuck with the crappy quality? Any help
would be great, thanks.
if you think the videos you bought are "crappy" quality then why did you buy them in the first place? -
When will Muse work with high resolution systems?
I just upgraded my PC to a Yoga 3, pushing an ASUS 2560x1440 monitor. After a new download/install, launching Muse on either the laptop's screen (3K) or the monitor results in the GUI's menus and commands being so tiny they are unusable. So far, Muse is the only application that I'm seeing this with. MS Office, browsers, and numerous other programs all work fine.
When I contacted support, they said "Muse isn't ready for high resolution systems," and had me drop the resolution down to "fix" the issue. Not what I spent all this money to do.
When I asked when Muse would be ready, they recommended that I post that question for the community. So here I am.
This all seems odd to me, because my old machine was a MacBook pro with retina display and the same monitor - Muse worked just fine there.
Question posted.The simple and only really honest answer is: When it's ready. Adobe never makes and "let's look into the crystal ball" statements about its software.
Mylenium -
Replacing MacBook Pro Screen with higher resolution screen?
I bought a MacBook Pro 15" today which has the lower end screen resolution. I originally wanted the higher resolution screen but the guys in the shop said they didn't sell them in the shops, only online, but since I wanted one before I headed off to France on Monday for two months, I decided to just go for the lower resolution, which I was told would show no real visible difference.
My question is: if I wanted to, would I be able to upgrade the screen to the higher resolution screen at a later date should I decide I was sick of this resolution? I've only just started the computer for the first time now really, but have noticed that text is not as crisp as it was on my old vaio, which is disappointing, but I'm hoping I'm just being slightly OCD and the comparison will fade in time.An independent repair shop wouldn't have access to order parts - so your only source is either an Apple Store or an AASP. If you want to try to DIY, you might be able to find the part at www.ifixit.com.
Clinton -
Save as EPS with High Resolution
Hi,
When I save the file as EPS , I want to enable all the options in EPS Options Pallet. I have enabled all options except setting high resolution in Transparency option. If anyone knows please help me.Then, any other way to process this. How can I continue this process.
-
Applescript to take a folder of pdfs and create jpgs with high resolution
Hello,
I have a script that creates pdfs from InDesign and puts them in a specific folder on my desktop.
Can someone help me with a script that would let me select that folder of PDF's and create a high res jpg and place them into another folder on my desktop?
Ultimately, I would love it to be one script in the future, but will stay module for now as I am learning.
thanks!!
babsHello,
I have a script that creates pdfs from InDesign and puts them in a specific folder on my desktop.
Can someone help me with a script that would let me select that folder of PDF's and create a high res jpg and place them into another folder on my desktop?
Ultimately, I would love it to be one script in the future, but will stay module for now as I am learning.
thanks!!
babs
Maybe you are looking for
-
Flash and quicktime export not possible at all!
hi iwork dev team! as there was no result on my prev post, here again: i use keynote'08 4.02 on imac with 2gb and osx 10.5.2. i created a presentation with 15 slides and over all 16,5 minutes. each slide has a mp3 sound file attached (the speakers vo
-
How can I get the book marks bar back to showing all bookmarks?
The recent changes to the bookmarks bar are really annoying. Previously I could see all the bookmarks, even if they flowed onto two or three lines now I can only see one line and the rest are in a drop down. This makes it slower to access things that
-
-Why when I open same PDF in Photoshop in opens as blank page (all the graphic info disappears)??? -And why when I'm trying to measure a page in the "image size" (in order to send to client, for example) the graphic info disappears as well??
-
Unable to detect Lab Pc 1200 in max 3.0
I am currently trying to install a legacy NI DAQ card Lab PC 1200 onto a Windows 98 machine. I believe this is a plug and play card as the windows operating system is detecting it everytime I boot up the machine. THe windows keep on prompting me for
-
Hi, I have macbook pro 15 10.9.4 ios, yesterday my mouse start behaving strange it was moving itself all the back round images start appearing on my screen with chrome safari and all. system went to sleep for 10 mins after that all chats history gone