Change image resolution using image events
Does anyone have an applescript to change image resolution using image events in OSX? I want to optimize my images for iWeb. I want to use a shell script in an applescript as a droplet or as a service in Automator. I'd like to leave the original intact.
No? Oh...ok den. No Applescripts at all.
Similar Messages
-
Changing between pages using jsr286 events.
Hello,
I am trying to implement inter portlet communication between 2 portlets which reside on 2 different pages using JSR 286 implementation.
I added supported-publishing-event and supported-processing-event in portlet.xml and able to fire the event from portlet A and able to handle the event in portlet B. However I am unable to navigate to page where portlet b resides. After handling the event, portal still displays the portlet A page.
How do I tell portal container to switch page while processing event?
Any help appreciated.Hello,
There is no "standard" mechanism for doing this from JSR286 portlets-- the JSR286 specification doesn't deal with the concept of portlets on other pages, or how to switch pages.
However, WebLogic Portal has a mechanism for doing exactly what you want to do. You'll need to create a file in your webapp with a ".portlet" extension, which looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<portal:root xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0" xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0 portal-support-1_0_0.xsd">
<netuix:javaPortlet definitionLabel="portletNameFromPortletXml" title="sample portlet">
<netuix:handleCustomEvent qname="{event.namespace}eventLocalPart">
<netuix:activatePage/>
</netuix:handleCustomEvent>
</netuix:javaPortlet>
</portal:root>The "portletNameFromPortletXml" is the portlet-name as declared in your WEB-INF/portlet.xml file, and is used to tie this .portlet file to the particular portlet in portlet.xml that you want to extend.
The "{event.namespace}eventLocalPart" is the fully-qualified JSR286 event name, expressed in Java QName notation (with the namespace in {}, followed by the local part).
The "activatePage" XML tag is used to tell WLP that when this portlet receives this event, automatically make the page that the (receiving) portlet is on the visible page. You don't have to have any code in the portlet to even handle this event-- any time it is sent, the page the portlet is on will automatically be made visible.
Kevin -
Capturing data changes in alv using classes
Hello All,
Currently am working on alv report using classes..,In this report am displaying 3 grids in the output in 3 different containers(cl_gui_custom_container)...,Am able to handle the data changes done in the grid at the run time using event data_changed ...,
Now the requirement + problem is ...if i do the changes in all the grids ,,,,,and if i click(hotspot event) on any of the rows/records in any of the grids ...,, I need to be able to capture all the data changes done in all the other grids....,,
for example:-
if i modify some records in all the 3 grids ,,, and if I click any of the row in any of the grid at a time,,, all the changes done in all the grids should be captured.....( in simple words one click all changes )
I tried using data_changed event....., am only able to capture the changes of the grid on which i clicked ( ie.hotspot event) but not the changes which i have done on other grids.....Pls. help me out with the possibilities
Hope am clear..
Thanks
JohnHi friend,
METHOD handle_user_command.
CASE e_ucomm.
WHEN 'UPDATE'.
CALL METHOD r_grid->get_selected_rows
IMPORTING
ET_INDEX_ROWS =
et_row_no = it_rows.
LOOP AT it_rows INTO wa_rows.
*****modify the first container data***********
endloop.
CALL METHOD r_grid1->get_selected_rows
IMPORTING
ET_INDEX_ROWS =
et_row_no = it_rows1.
LOOP AT it_rows1 INTO wa_rows1.
*****modify the second container data***********
endloop.
CALL METHOD r_grid1->get_selected_rows
IMPORTING
ET_INDEX_ROWS =
et_row_no = it_rows2.
LOOP AT it_rows2 INTO wa_rows2.
*****modify the third container data***********
endloop.
endcase.
Now we can create three container and three different grid class object but we are using same method.
UPDATE buttton is common to all three containers.
But one important point when u change the records in container we must select the rows then only selected rows r come to the internal table otherwise it is not come.
CREATE OBJECT r_container
EXPORTING
container_name = 'CONTAINER_1'
CREATE OBJECT r_container2
EXPORTING
container_name = 'CONTAINER_2'
CREATE OBJECT r_container3
EXPORTING
container_name = 'CONTAINER_3'
CREATE OBJECT r_grid
EXPORTING
i_parent = r_container
CREATE OBJECT r_grid1
EXPORTING
i_parent = r_container2
CREATE OBJECT r_grid2
EXPORTING
i_parent = r_container3
NOW WE CAN CALL THE METHOD.
CREATE OBJECT event_receiver1.
SET HANDLER event_receiver1->handle_before_user_command FOR r_grid.
CREATE OBJECT event_receiver1.
SET HANDLER event_receiver1->handle_before_user_command FOR r_grid2.
CREATE OBJECT event_receiver1.
SET HANDLER event_receiver1->handle_before_user_command FOR r_grid3
I thing it should be possible.But u must remeber u must select the records when u modifie in three containersBUT UPDATE button is common to all three containers.
Regards,
MURALII -
Applescript to change image resolution using image events
Does anyone have an applescript to change image resolution using image events in OSX? I want to optimize my images for iWeb. I want to use a shell script in an applescript as a droplet or as a service in Automator. I'd like to leave the original intact.
For what type of use in iWeb are these photos intended? If it's for adding to a page (not a photo or album page) iWeb does a great job of optimizing. See my post in this topic: Re: Photo Resolution in iWeb.
You can optimize an entire site with an application like Web Site Maestro. It can reduce the site's size by up to 49%. Here's the settings available for the optimization:
Click to view full size
It's very effective.
OT -
Photos Export Options to Change Image Resolution
iPhoto used to let you export photos and change the resolution (setting pixel size, for example). This is a function I used a lot to help my wife who is an artist who needs to export images to post on eBay with the optimum image size.
I signed up for the Photos Beta to make sure this function was going to be available. My recollection is that the first Beta version did have this feature in Photos. I didn't check the later betas, but now that the production V1.0 is out, I discovered that this feature is not available.
Does anyone remember seeing this feature in the original beta software? I was pretty sure it was present, but I might be mistaken. It seems strange to remove features in the beta process.
Now I have to use Lightroom to do this. LR handles this function easily, but it is a lot more complicated.
DavidI am still seeing the option to change the resolution in the "File > Export > Version" panel.
Have you searched all options, David? I have to click the little disclosure arrow tin the Export panel to get to the "custom" option. -
Applying easing while changing image using timer
Hi
In my app i am changing images using timer..i have 7 images when the image starts changing it flicker and background comes then the new image that is what my problem is
here is my code..
import flash.utils.Timer;
import flash.events.TimerEvent;
import flash.display.Sprite;
var myTimer:Timer = new Timer(95, 7);
private var k:int;
public var imgary:Array=new Array();
function init()
for(var i:int=0;i<=6;i++)
imgary[i]=new Array();
imgary[i][0]="Assets/open_drawer"+i+".png";
if(i==1||i==2)
imgary[i][1]=81;
else if(i==0)
imgary[i][1]=77;
else if(i==3)
imgary[i][1]=83;
k=83;
else if(i==4)
k=k+2;
imgary[i][1]=k;
else
k=k+3;
imgary[i][1]=k;
myTimer.addEventListener(TimerEvent.TIMER, timerHandler);
myTimer.start();
public function timerHandler(e:TimerEvent):void {
tests.source=imgary[e.target.currentCount-1][0];
tests.width=383;
tests.height=imgary[e.target.currentCount-1][1];
tests.x=0;
//invalidateDisplayList();
]]>
</mx:Script>
<mx:Panel verticalAlign="top" horizontalScrollPolicy="off" backgroundColor="#616060" id="pnlMaster" width="400" height="560" horizontalCenter="-184" verticalCenter="13">
<mx:Image id="tests" source="@Embed(source='Assets/drawer_img.png')" width="383" x="0" height="75"/>
</mx:Panel>
</mx:WindowedApplication>is there any way by which i can handle this..can i provide smoothness or easing kind of thing so that it appears to the user that it is a only one image..
-
How to change image resolution in oracle forms.
Hi Experts,
I am working on oracle forms 10g (Windows7 OS). Can we get the image resolution of an image item in oracle forms? Can we resize the image in terms of resolution?
I have a requirement where user can upload only 1280x720 size images. Either i have to validate the image resolution and give them a message saying 'Only 1280x720 size images are allowed' or simply i have to convert the image to be upload to 1280x720 size and save in the database. If someone could give the solution for the above problem that would be very much appreciated.
Thanks,
Pramod SR1. You need to resample.
2. You can automate the process.
1.
Open one of the images.
Go to Image > Image Size
Set the units to Percent (100)
Change the resolution to 300 ppi (not cm!)
Make sure Resample is checked
2. automation
Test the above steps to make sure it works.
Record the steps as an action.
Make a droplet from the action.
Drag the folder with the images to the droplet. -
How to view the image by using mousedrag event?
How can i move the full image by using mousedrag event(not using scrollBar and the frame should not reziable).
e.g
click the mouse in image and drag right side or towards down,the image should move to till the end in width or height
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import java.awt.image.BufferedImage;
import java.io.*;
import javax.imageio.ImageIO;
import javax.swing.*;
public class LoadAndShow extends JPanel implements MouseMotionListener{
BufferedImage image;
Dimension size = new Dimension();
public LoadAndShow(BufferedImage image) {
this.image = image;
size.setSize(image.getWidth(), image.getHeight());
* Drawing an image can allow for more
* flexibility in processing/editing.
protected void paintComponent(Graphics g) {
// Center image in this component.
int x = (getWidth() - size.width)/2;
int y = (getHeight() - size.height)/2;
g.drawImage(image, x, y, this);
public Dimension getPreferredSize() { return size; }
public static void main(String[] args) throws IOException {
//set the image path
String path = "Images/dinette.jpg";
BufferedImage image = ImageIO.read(new File(path));
LoadAndShow test = new LoadAndShow(image);
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setResizable(false);
f.add(test);
f.setSize(400,400);
f.setLocation(200,200);
f.setVisible(true);
//showIcon(image);
* Easy way to show an image: load it into a JLabel
* and add the label to a container in your gui.
private static void showIcon(BufferedImage image) {
ImageIcon icon = new ImageIcon(image);
public void mouseDragged(MouseEvent arg0)
// TODO drag the image
public void mouseMoved(MouseEvent arg0)
}Following is the updated code for image move on mouse move.
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import java.awt.image.BufferedImage;
import java.io.*;
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.event.MouseListener; public class LoadAndShow extends JPanel implements MouseMotionListener,MouseListener{
BufferedImage image;
Dimension size = new Dimension();
Point pt;//Maintain the Current Pressed Values of Mouse
Rectangle rect;//Maintain the moving position of Mouse public LoadAndShow(BufferedImage image) {
this.image = image;
size.setSize(image.getWidth(), image.getHeight());
this.addMouseListener(this);
this.addMouseMotionListener(this);
* Drawing an image can allow for more
* flexibility in processing/editing.
protected void paintComponent(Graphics g) {
// Center image in this component.
int x = (getWidth() - size.width)/2;
int y = (getHeight() - size.height)/2;
g.drawImage(image, x, y, this);
} public Dimension getPreferredSize() { return size; } public static void main(String[] args) throws IOException {
//set the image path
String path = "C:\\Documents and Settings\\All Users\\Documents\\My Pictures\\Sample Pictures\\Winter.jpg";
BufferedImage image = ImageIO.read(new File(path));
LoadAndShow test = new LoadAndShow(image);
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setResizable(false);
f.add(test);
f.setSize(400,400);
f.setLocation(200,200);
f.setVisible(true);
//showIcon(image);
* Easy way to show an image: load it into a JLabel
* and add the label to a container in your gui.
private static void showIcon(BufferedImage image) {
ImageIcon icon = new ImageIcon(image);
} public void mouseClicked(MouseEvent e) {
} public void mousePressed(MouseEvent e) {
pt = e.getPoint();
rect = this.getBounds();
} public void mouseReleased(MouseEvent e) {
} public void mouseEntered(MouseEvent e) {
} public void mouseExited(MouseEvent e) {
} public void mouseDragged(MouseEvent e) {
Point p=e.getPoint();
moveImageOnMouseMove(p);
} public void mouseMoved(MouseEvent e) {
* This Function is used for calculate the Dragging point of Mouse and set the image on particular points
* @param p Point hold the dragging point of Mouse
private void moveImageOnMouseMove(Point p)
int xDelta = p.x - pt.x;
int yDelta = p.y - pt.y;
rect.x = rect.x + xDelta;
rect.y = rect.y + yDelta;
this.setLocation(rect.x, rect.y);
this.repaint();
}} If you have any query related with the code please let me know.
Manish L
MS Technology
www.ms-technology.com
Edited by: mannymst on Sep 18, 2008 5:53 AM
Edited by: mannymst on Sep 18, 2008 6:05 AM -
How is the resolution variable or when would we change the resolution of an image and why?
How is the resolution variable or when would we change the resolution of an image
and why?It all depends on the output:
* for viewing on screen 90 -120 ppi
* for printing on a laser printer 180 -300 ppi
* for printing on a desktop printer 240 - 300 ppi
Some people claim 360 ppi is optimum but I don't see any difference compaired to 300 ppi at least not with the naked eye... -
Photoshop CS3 Changes Image Resolution
Hello!
Recently, Photoshop CS3 (installed on PC with Windows XP) has been changing the resolution of my images. I'll create an image and save it (as anything... jpg or png). When I close and reopen the image, its values have changes. For example: a 10 x 5" images at a resoltion of 300 will somehow change to 100 x 50 at a low resolution of something like 6. I'd like to know what causes this.Chris, if what you claim were true, then I wouldn't have an issue. In fact, what I described in my initial post happens.
I create a new image (we all follow the same process [Fle > New... select width, height, inches or pixels, resolution]) at a resolution of 300 for a 10x5” image. Regardless of what I save the image as (jpg, png, etc.), if I close and reopen the image, the values have changed The width always goes to 100" (I work in inches) and the resolution drops to 6, at the lowest that I’ve seen, up to 49. Could a virus cause this? -
How do I change image resolution to 72 ppi the length pixels going lower than 1920 pixels
Hello,
I have an image that is 2550px x 3300px with a resolution of 300. I would like to change this to a web jpeg with a resolution of 72ppi without changed the length resolution to less than 1920. Everytime I try changing the resolution to 72 ppi it changes the size to less than the 1920 px size needed.
Thank you,JanAn image has some pixels real information these make up the bulk of any image format file size. DPI is a resolution setting that defines what the size of a pixel is. Pixels have no size till there is a resolution specified. your 2550px x 3300px resolution can be set to 72 not a single pixel will change only the size of the image will. A device that honors resolution will now render the image 35.4" x 45.8" instead of the old 300 setting which would render the image 8.5" x 11" This is how Image size works when resample is not checked. If you check Resampel the number of pixels an image has will change. You will wind up with a new image with a different number of pixels interpolated the the old image that will no longer exist not a single pixel remains of the old image. So if you open image size on your image you will see 8.5"x11" at 300DPI.
Check resample change to pixels and change 3300 to 1920 you will see Photoshop set the width to 1484 px. and the resolution be 300DPI.
Open the image dialog again. Un-check resample and you will see Photoshop change the width and height to 4.947"x6.4" now change the 300 DPI to 72 DPI you will see Photoshop change the width and height to 20.611" x 26.667" the pixesl will remain 1484px x 1920px. This is how image size works. -
Hello! How change image resolution (dpi/inch) with Automator!
I have some images to combine in a PDF. The resolution of images is different so the PDF has different size of pages.
I need to modify the resolution using Automator but... how to do it?
Thanks Sterfano
PS sorry for my bad english languageHave you tried setting it up using "crop images" - you can specify the size.
-
How can I change image resolution ?
I want to make an application :
1: user upload an image
2: he define 2 points, and the program was told the distance
between 2 points to be 5 inches
3: change the resolution of the image to be 125 pixels/inches
any idea?thank youI managed to write a VI that can reduce the resolution of bitmaps. It was tedious. I would still like a solution that can increase or decrease the resolution.
Attachments:
resize2d.vi 50 KB
test_resize2d.vi 36 KB -
Can you change image output resolution in Keynote?
Is there a trick? I know it's nowhere obvious, but I find it'd be helpful -- I find Keynote the simplest way to create basic illustrations, but I need them at 150 DPI for printing. Obviously I could create a giant documents and manually dowsize, but I"d prefer to do it "native"...
Keynote is a video display screen presentation application and therefore the resolution is set in pixels.
To change resolution, use the inspector > documents tab and test what resolution you need for the individual printer you will be using at a particular print size.
Incidentally, 150 dpi (dots per inch) is too low to print, 600 dpi is considered low res draft, 1200 medium and 2600 high (photo quality. Perhaps you mean 150 ppi (pixels per inch) which is still low quality. -
Changing images to 300dpi within indesign
Hi again only me, lol
Within Illustrator have an action set up so i can automatically change the resolution of an image to 300dpi with one click.
I know Indesign doesnt use actions but is there away of simply setting a script to action this very time saving exercise?
AndyYou don't need to do this.
Make a PDF
Go to File>Export and in the Compression section of the dialog box there is the option to Downsample All Images to 300 ppi that are above 450.
However:
There are scripts to resize images to do this http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1833529
(Window>Automation> Scripts) CS5 it's Under (Window>Utilities>Scripts)
Installing scripts
http://indesignsecrets.com/how-to-install-scripts-in-indesign.php
Why do you want to change all the images to 300 ppi ? There's no need.
There are two things to look for in the Window>Info Panel
When you place an image check teh Info Panel
It will have actual and effective PPI
Actual will show you the ppi that is resident in the file.
Effective will show you the PPI in relation to how it was scaled within InDesign
As long as Effective PPI is 300 ppi or higher then all is fine.
Generally there is no need to go to open all your images and save them as 300 ppi
Just use them as they are - even if they are "effectively" over 300 ppi it won't matter.
When you make the PDF for print you can downsample the images there - reducing the size of the PDF.
Maybe you are looking for
-
Install Netweaver 7.1, service pack 3 on Windows 2008 Server 64bit
Hi All, Good Morning. I am working as Oracle APPS DBA. I had a requirement for installing Netweaver 7.1, service pack 3 on Windows 2008 Server 64bit machine. I need this Application server for Vertex O-Series which is working with SQL Server as the
-
Hi, Can any one suggest the solution to get the workflow items in the portal UWL. I had configured the UWL and I am able to get the mails of the documents in the inbox of SAP. But I am not able to get the workflow items. Even I had maintained the tas
-
Over the weekend I added appointments to my iPad, then went to sync those changes to my iCal on my Mac and iPod. The calendars on my Mac and iPod were wiped clean. All the appointments I have on my iPad are there but I am unable to sync with the Mac
-
Help, unable to setup AX as a client
I am a new windows convert (less than a week) and so far I love my new iMac. Wishing to stream my itunes to the stereo I purchased an Airport Express. I am able to make it work as a separate network but have been very unsuccessful at making it work a
-
Cannot connect my C7280 wirelessly to my Netgear WNDR3400V3
Greetings, Trying to connect my wireless Netgear WNDR3400V3 routher to my HP C7280. I enter the SSID and password, using WPA and get error: can not conect to network. What am I missing. Thanks, AJ