Image Events not resizing tiff
Hello,
I have been trying to get some results from Image events for 5 hours now.
Below is what I will use to express the issue I am encountering.
When running the following script in script editor it appears to do what is asked of it but in the end the file is unchanged.
It is almost as if Image Events is not working.
Would someone please provide a step of troubleshooting for me?
When I use return I get the file I selected.
====Script=====
set this_file to choose file
try
tell application "Image Events"
launch
set this_image to open this_file
scale this_image to size 318
pad this_image to dimensions {320, 240}
save this_image with icon
return this_image
close this_image
end tell
on error error_message
display dialog error_message
end try
====END Script====
Thank you very much.
Thanks for checking this Pierre.
What I meant by saying it appears to do what is asked of it... is that I didn't receive any errors.
I just did a major edit on the post because it was that my tiff files I was trying to process were CMYK. I converted them to RGB in Photoshop and they processed just fine.
Not a solution though. I don't want to have to go through Photoshop because I have thousands of images to process.
I tried to find the command to convert from CMYK to RGB in Image Events and can't find that.
Can someone help me with the command to do that conversion in Image Events or at least without having to run Photoshop to do it?
Thank you so very much in advance.
Jeff
Message was edited by: Jeffrey DeRousse
Message was edited by: Jeffrey Derousse
Similar Messages
-
Pasted PDF image will not resize
I am building a web site with iWeb - http://www.ipowerapps.com
Notice how small the iPowerApps logo is? It does not appear this way in iWeb (I resized it to make it biger). The source of the logo was from a PDF file. I believe that I selected it and pasted it into one of the existing photo frames in the template (I do not remember exactly what I did). Any ideas as to why this would occur?
Thanks,
SWelcome to the Apple Discussions. The logo is a small portion of the png file that it's in. The image size is 298 x 226 and most of it is blank space. Crop it down to something like 110 x 90 with the logo in the center and try it. However, you might want to find a larger version of it so it won't look pixelated if you enlarge it in iWeb by dragging a corner.
Try selecting the image in iWeb and use the Inspector/Metrics pane to resize it.
OT
Message was edited by: Old Toad -
My desktop image will not resize no matter what I do.
For some reason, I cannot get the images that I use as my desktop wallpaper to do anything but "full screen". I've done restarts and tried every type of image display and nothing works. I have some great wallpaper images, but unless I can do "fit to screen", they're so large you can't see half the image. I don't want to use the ones that come pre-installed. Help!
Try restoring the phone in Recovery Mode: http://support.apple.com/kb/HT1808.
-
Flexible web template image not resizing
I have created a flexible web template using div tags. This is very basic layout. Header,menubar, sidebar ,content, and footer. I am having a problem with images in the flexible content area. If I resize the page the image does not resize. I have placed the image inside a div tag but it is not flexible like the content div tag. I want to be able to resize the page and have the images resize as I drag the page over. Any ideas on this ?
The simplest way to fill a liquid division is to make a small image tile and repeat it in background with CSS code:
Example:
body {
background: url (my-bg-img.jpg) repeat;
More on backgrounds:
http://alt-web.com/Backgrounds.shtml
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
http://alt-web.blogspot.com -
I use Photoshop Elements 11 to print panoramas. It works for jpeg images but not for tiff images. Seems strange because PSE11 manages tiff images in all other processes. Anyone fared better?
Thank you for your trouble.
My images are not usually layered and the particular case I am about to quote, it is not. The dimensions are 10,546 x 2,790 and the image has 16.7 mbs. I use 8 bit colour. When I set up the print screens for tiff, everything is normal until I get to the last screen with the image set upon the photo paper. Then the paper size indicated with the image refuses to budge from the A4 size, so the panorama gets printed on that. I consulted the Adobe chat line and the expert could 't get it to work either. So he came to the conclusion that the tiff capability had not been extended to printing panoramas. In seeking advice, I thought someone might refer me to an updating patch!
Well done! You have confounded the system! I could not find any control that would override the setting. -
We have version 10.5.8 photoshop CS3 for Mac. How do we fix a problem with photoshop not resizing dpi? For example we resized a 72 dpi image to 200 dpi, when we do a pdf analysis it read as 344 dpi.
Sounds like it's a problem with the Acrobat settings. Did you set them to the same resolution?
-
Raw images are not opening in photoshop nor tiffs with light room adjustment
raw images are not opening in photoshopcs5 nor tiffs with light room adjustment from lightroom3. need help have client dead line for today and monday..please help. thank you nancy
I am too tired to go through all this again with an other forum, I also do not have the time, I must hand in my images monday morning...I will wait till you get back to me...it 8pm brussels time..I will continue working in capture one in the mean time... and hope you can find the answer...thank you for you help. sincerley
nancy -
Node Container that does not resize with Window Resize Event
Hello,
I'm not new to Java but I am new to JavaFX.
I plan to have a container/Canvas with multiple shapes (Lines, Text, Rectangle etc) in it. This Container can be X times in the Szene with different Text Shapes. I need to Zoom and Pan (maybe rotation) the whole Szene and the Containers/Canvas.
So I was playing around with that but I have two issues.
1) all Canvas classes that I found (like Pane for example) do resize with the main window resize event. The content of the canvas isn't centered any more.
2) I added a couple of Rectangles to the canvas and both the rectangles and the canvas have a mouse listener which will rotate the item/canvas. Problem is, that even if I click the rectangle also the underlaying canvas is rotated...I think I need some kind of Z-Info to find out what was clicked.
Here is the little example program, it makes no produktiv sense but it demonstrates my problem.
Does anybody has a tip what canvas class would fit and does not resize with the main window and how to figure out what was clicked?
public class Test extends Application
Scene mainScene;
Group root;
public static void main(String[] args)
launch(args);
@Override
public void init()
root = new Group();
int x = 0;
int y = -100;
for(int i = 0; i < 5; i++)
x = 0;
y = y + 100;
for (int j = 0; j < 5; j++)
final Rectangle rect = new Rectangle(x, y, 30 , 30);
final RotateTransition rotateTransition = RotateTransitionBuilder.create()
.node(rect)
.duration(Duration.seconds(4))
.fromAngle(0)
.toAngle(720)
.cycleCount(Timeline.INDEFINITE)
.autoReverse(true)
.build();
rect.setOnMouseClicked(new EventHandler<MouseEvent>()
public void handle(MouseEvent me)
if(rotateTransition.getStatus().equals(Animation.Status.RUNNING))
rotateTransition.setToAngle(0);
rotateTransition.stop();
rect.setFill(Color.BLACK);
rect.setScaleX(1.0);
rect.setScaleY(1.0);
else
rect.setFill(Color.AQUAMARINE);
rect.setScaleX(2.0);
rect.setScaleY(2.0);
rotateTransition.play();
root.getChildren().add(rect);
x = x + 100;
public void start(Stage primaryStage)
final Pane pane = new Pane();
pane.setStyle("-fx-background-color: #CCFF99");
pane.setOnScroll(new EventHandler<ScrollEvent>()
@Override
public void handle(ScrollEvent se)
if(se.getDeltaY() > 0)
pane.setScaleX(pane.getScaleX() + 0.01);
pane.setScaleY(pane.getScaleY() + 0.01);
else
pane.setScaleX(pane.getScaleX() - 0.01);
pane.setScaleY(pane.getScaleY() - 0.01);
pane.getChildren().addAll(root);
pane.setOnMouseClicked(new EventHandler<MouseEvent>(){
@Override
public void handle(MouseEvent event)
System.out.println(event.getButton());
if(event.getButton().equals(MouseButton.PRIMARY))
System.out.println("primary button");
final RotateTransition rotateTransition2 = RotateTransitionBuilder.create()
.node(pane)
.duration(Duration.seconds(10))
.fromAngle(0)
.toAngle(360)
.cycleCount(Timeline.INDEFINITE)
.autoReverse(false)
.build();
rotateTransition2.play();
mainScene = new Scene(pane, 400, 400);
primaryStage.setScene(mainScene);
primaryStage.show();
}Edited by: 953596 on 19.08.2012 12:03To answer my own Question, it depends how you add childs.
It seems that the "master Container", the one added to the Scene will allways resize with the window. To avoid that you can add a container to the "master Container" and tell it to be
pane.setPrefSize(<child>.getWidth(), <child>.getHeight());
pane.setMaxSize(<child>.getWidth(), <child>.getHeight());
root.getChildren().add(pane);and it will stay the size even if the window is resized.
Here is the modified code. Zooming and panning is working, zomming to window size is not right now. I'll work on that.
import javafx.animation.Animation;
import javafx.animation.ParallelTransition;
import javafx.animation.ParallelTransitionBuilder;
import javafx.animation.RotateTransition;
import javafx.animation.RotateTransitionBuilder;
import javafx.animation.ScaleTransitionBuilder;
import javafx.animation.Timeline;
import javafx.animation.TranslateTransitionBuilder;
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.geometry.Point2D;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.input.MouseButton;
import javafx.scene.input.MouseEvent;
import javafx.scene.input.ScrollEvent;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.stage.Stage;
import javafx.util.Duration;
public class Test extends Application
Stage primStage;
Scene mainScene;
Group root;
Pane masterPane;
Point2D dragAnchor;
double initX;
double initY;
public static void main(String[] args)
launch(args);
@Override
public void init()
root = new Group();
final Pane pane = new Pane();
pane.setStyle("-fx-background-color: #CCFF99");
pane.setOnScroll(new EventHandler<ScrollEvent>()
@Override
public void handle(ScrollEvent se)
if(se.getDeltaY() > 0)
pane.setScaleX(pane.getScaleX() + pane.getScaleX()/15);
pane.setScaleY(pane.getScaleY() + pane.getScaleY()/15);
System.out.println(pane.getScaleX() + " " + pane.getScaleY());
else
pane.setScaleX(pane.getScaleX() - pane.getScaleX()/15);
pane.setScaleY(pane.getScaleY() - pane.getScaleY()/15);
System.out.println(pane.getScaleX() + " " + pane.getScaleY());
pane.setOnMousePressed(new EventHandler<MouseEvent>()
public void handle(MouseEvent me)
initX = pane.getTranslateX();
initY = pane.getTranslateY();
dragAnchor = new Point2D(me.getSceneX(), me.getSceneY());
pane.setOnMouseDragged(new EventHandler<MouseEvent>()
public void handle(MouseEvent me) {
double dragX = me.getSceneX() - dragAnchor.getX();
double dragY = me.getSceneY() - dragAnchor.getY();
//calculate new position of the pane
double newXPosition = initX + dragX;
double newYPosition = initY + dragY;
//if new position do not exceeds borders of the rectangle, translate to this position
pane.setTranslateX(newXPosition);
pane.setTranslateY(newYPosition);
int x = 0;
int y = -100;
for(int i = 0; i < 5; i++)
x = 0;
y = y + 100;
for (int j = 0; j < 5; j++)
final Rectangle rect = new Rectangle(x, y, 30 , 30);
final RotateTransition rotateTransition = RotateTransitionBuilder.create()
.node(rect)
.duration(Duration.seconds(4))
.fromAngle(0)
.toAngle(720)
.cycleCount(Timeline.INDEFINITE)
.autoReverse(true)
.build();
rect.setOnMouseClicked(new EventHandler<MouseEvent>()
public void handle(MouseEvent me)
if(rotateTransition.getStatus().equals(Animation.Status.RUNNING))
rotateTransition.setToAngle(0);
rotateTransition.stop();
rect.setFill(Color.BLACK);
rect.setScaleX(1.0);
rect.setScaleY(1.0);
else
rect.setFill(Color.AQUAMARINE);
rect.setScaleX(2.0);
rect.setScaleY(2.0);
rotateTransition.play();
pane.getChildren().add(rect);
x = x + 100;
pane.autosize();
pane.setPrefSize(pane.getWidth(), pane.getHeight());
pane.setMaxSize(pane.getWidth(), pane.getHeight());
root.getChildren().add(pane);
masterPane = new Pane();
masterPane.getChildren().add(root);
masterPane.setStyle("-fx-background-color: #AABBCC");
masterPane.setOnMousePressed(new EventHandler<MouseEvent>()
public void handle(MouseEvent me)
System.out.println(me.getButton());
if((MouseButton.MIDDLE).equals(me.getButton()))
double screenWidth = masterPane.getWidth();
double screenHeight = masterPane.getHeight();
System.out.println("screenWidth " + screenWidth);
System.out.println("screenHeight " + screenHeight);
System.out.println(screenHeight);
double scaleXIs = pane.getScaleX();
double scaleYIs = pane.getScaleY();
double paneWidth = pane.getWidth() * scaleXIs;
double paneHeight = pane.getHeight() * scaleYIs;
double screenCalc = screenWidth > screenHeight ? screenHeight : screenWidth;
double scaleOperator = screenCalc / paneWidth;
double moveToX = (screenWidth/2) - (paneWidth/2);
double moveToY = (screenHeight/2) - (paneHeight/2);
System.out.println("movetoX :" + moveToX);
System.out.println("movetoY :" + moveToY);
//double scaleYTo = screenHeight / paneHeight;
ParallelTransition parallelTransition = ParallelTransitionBuilder.create()
.node(pane)
.children(
TranslateTransitionBuilder.create()
.duration(Duration.seconds(2))
.toX(moveToX)
.toY(moveToY)
.build()
ScaleTransitionBuilder.create()
.duration(Duration.seconds(2))
.toX(scaleOperator)
.toY(scaleOperator)
.build()
.build();
parallelTransition.play();
public void start(Stage primaryStage)
primStage = primaryStage;
mainScene = new Scene(masterPane, 430, 430);
primaryStage.setScene(mainScene);
primaryStage.show();
} -
I have created a web service that pulls images (gif) from the
database and base64 it for sending across the wire. The flex
application then decodes and renders the image. The Image is not
being scaled correctly. If I embed the image into the application
everything works correctly. But if the image is decoded then sizing
goes out the window.
The image overflows the Image box and takes up the full size
of the image. Zoom, rotation, etc. do nothing to the image.
Any help is appreciated...
Example Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="onLoad(event);">
<mx:Script>
<![CDATA[
import mx.utils.Base64Decoder;
public function onLoad(event:Event):void {
// Decode image - Base64 gif image (500 x 776)
var base64:String = "R0lGOD..."; // Get base64 from web
service call
var decoder:Base64Decoder = new Base64Decoder();
decoder.decode(base64);
// Load image into container
var loader:Loader = new Loader();
loader.loadBytes(decoder.flush());
image2.addChild(loader);
]]>
</mx:Script>
<mx:HBox id="mainBox">
<!-- Should render a 100 x 100 box but instead the image
is full size -->
<mx:Image id="image2" width="100" height="100" />
</mx:HBox>
</mx:Application>The simplest way to fill a liquid division is to make a small image tile and repeat it in background with CSS code:
Example:
body {
background: url (my-bg-img.jpg) repeat;
More on backgrounds:
http://alt-web.com/Backgrounds.shtml
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
http://alt-web.blogspot.com -
Resizing Image and Not Keep Aspect Ratio
Is there a free program to resize images and not keep the original aspect ratio?
I need to resize loads of images to 100x100 pixels and have tried Image well and IResize yet they do not seem to have an option to not keep the original aspect ratio.
Thank you
20" Intel 2GHz Core Duo imac, 2GB Ram, 250 GB HDHi, Downsize does not seem all that great according to reviews. Why not see if you can buy PS E' 3 mac -- maybe ebay/amazon (if I remember I only paid about $70 for PS E3) As PS E4 just came out I'm sure someone has PS E3 for sale. You will then have no problems completing your image resizing.
2 other questions for you..are you using the Mac side of your intel or Windows?
if your using the Windows side I can let you have PS 6 (PC) ..freegratus. -
My iPad will not resize images for the wallpaper
My iPad will not resize images for the wallpaper
if you go in through the photos app and send your image to be wallpaper you'll have a bit more luck.
Also, go into the settings, accessibility and try turning off parallax motion. -
Photoshop will not resize images
As of today, PSE will not resize images for me. I typically use PSE for this function and am familiar with it.
I thought it might have been the windows update that occurred last night, so I restored my system earlier, but it does not help. I still can't resize images. Any thoughts? Thanks.Operating system?
PSE version?
What are the exact steps you're doing?
What are the details of what's happening when you try?
Ken -
Setting for whether to resize images or not in exportContext.propertyTable?
I have a plugin that creates multiple renditions of various sizes. For the sizes I require, the image sizes are set with the two properties LR_size_resizeType and LR_size_maxHeight.
The issue I am facing is that the rendering process only reduces the sizes if the "Resize to Fit" checkbox is checked in Export settings. If left unchecked, all renditions are set at the same size of the original image. I've attempted to find out which property this checkbox may effect, but don't see any difference in the keys/values of exportContext.propertyTable between having the checkbox set or not set.
I hope somebody can help advise on the following:
* Is there a property I can set to force LR to resize renditions, whether in exportContext.propertyTable or elsewhere?
* If not, is there a property in my plugin's preset values that can set this checkbox to 'on' when the plugin is installed?
* Any other approaches to force LR to resize renderings without having the user check the 'Resize to Fit' checkbox?
Thanks in advance for any help.Thanks for the advice Rob. The magic setting seems to be LR_size_doConstrain. When set to true, the images are now resizing correctly, whether Resize to Fit is checked or not.
-
My images will not auto resize for viewing
This is somewhat embarrassing. When viewing images from the web, if they're too large to fit the current window, they get re-sized to fit. Okay. I have a file/page of thumbnails generated by XnView and when I click, the image is loaded, everything is good except the image is always larger than the window. The problem is Firefox WILL NOT auto-resize the image to fit. If I right mouse, I can select "View Image" to view whole image, but I don't want to have to do that for 1000's of images.
Any help/insight would be appreciated.
Regards,
DaveLilly.Love wrote:
Hi, I'm new to this and for some reason my images are not appearing to full scale on adobe premiere cs6. This is really annoying as I am trying to make a stop motion video but I can't see what I'm doing. Please reply soon, this is an important project. Thanks
Your sequence settings and clip settings are not matching. To make them match, right click on a clip and choose New Sequence from Clip and a new sequence will be created based on your clip settings. -
The following script works correctly:
property openTypes : {"PDF", "com.adobe.pdf", "BMP", "com.microsoft.bmp", "JPEG", "JPEG2", "jpg", "public.jpeg", "PICT", "com.apple.pict", "PNG", "public.png", "PSD", "com.adobe.photoshop-image", "TIFF", "public.tiff"}
global eventsFolder, ProcessedfolderName, events_Folder
on runConversion(theItems)
activate "Finder"
set saveFolder to choose folder with prompt "Save resized pictures where?" without multiple selections allowed and invisibles
tell application "Image Events"
launch
set newWidth to 120
if (count items of theItems) is greater than 0 then
repeat with anItem in theItems
set theName to the name of anItem
tell application "Finder" to set myNewFileName to (saveFolder as string) & "tmb_" & theName
set imageFile to (open anItem)
scale imageFile to size newWidth
save imageFile as PNG in file myNewFileName
close imageFile
end repeat
else
display dialog "Nothing to convert."
end if
end tell
end runConversion
mount volume someVolume
set root_Folder to root_Folder as alias
set events_Folder to events_Folder as alias
set theStr to (current date) as string
set d to date theStr
set ProcessedfolderName to ((month of d as integer) & "_" & day of d) as text
tell application "Finder"
set events_Folder to events_Folder as alias
set ProcessedfolderName to ((month of d as integer) & "_" & day of d) as text
set new_FileFolder to make new folder at events_Folder with properties {name:ProcessedfolderName}
move (every file of events_Folder whose name ends with ".png") to new_FileFolder
set oldFiles to every file of events_Folder
set thecount to number of items of oldFiles
end tell
set theFiles to choose file with prompt "Choose the files" of type openTypes with multiple selections allowed without invisibles
runConversion(theFiles)
activate
BUT if I modify it to the following, it gets hung up on "scale imageFile to size newWidth"
error "The variable imageFile is not defined." number -2753 from "imageFile"
Maybe it has something to do with the line
'set theFiles to choose file with prompt "Choose the files" of type openTypes with multiple selections allowed without invisibles'
which is not in the broken script.
The broken script is as follows:
property openTypes : {"PDF", "com.adobe.pdf", "BMP", "com.microsoft.bmp", "JPEG", "JPEG2", "jpg", "public.jpeg", "PICT", "com.apple.pict", "PNG", "public.png", "PSD", "com.adobe.photoshop-image", "TIFF", "public.tiff"}
global eventsFolder, ProcessedfolderName, new_FileFolder, imageFile
on runConversion(theItems)
activate "Finder"
set saveFolder to new_FileFolder
set theItems to every file of the saveFolder
tell application "Image Events"
launch
set newWidth to 120
if (count items of theItems) is greater than 0 then
repeat with anItem in theItems
set theName to the name of anItem
tell application "Finder" to set myNewFileName to (saveFolder as string) & "tmb_" & theName
set imageFile to (open anItem)
scale imageFile to size newWidth
save imageFile as PNG in file myNewFileName
close imageFile
end repeat
else
display dialog "Nothing to convert."
end if
end tell
end runConversion
mount volume mountVolume
set root_Folder to rootFolder as alias
set events_Folder to events_Foler as alias
set theStr to (current date) as string
set d to date theStr
set ProcessedfolderName to ((month of d as integer) & "_" & day of d) as text
tell application "Finder"
set ProcessedfolderName to ((month of d as integer) & "_" & day of d) as text
set new_FileFolder to make new folder at events_Folder with properties {name:ProcessedfolderName}
move (every file of events_Folder whose name ends with ".png") to new_FileFolder
set oldFiles to every file of events_Folder
set thecount to number of items of oldFiles
end tell
set theFiles to every file of new_FileFolder
runConversion(theFiles)
activateSeveral lines of the “broken” script seem to be badly written, for example:
set root_Folder to rootFolder as alias -- rootFolder instead of root_Folder
set events_Folder to events_Foler as alias -- Foler instead of Folder
Message was edited by: Pierre L.
Maybe you are looking for
-
For some reason I can't create or edit jsp files within the design view. I get a blank screen with the following text in the middle "Type, paste, or drag content onto this blank page, or drag and drop a component from the palette. The weird thing is
-
Cant control the volume??!!
i just updated to 3.0, and now there is noway to control the volume? i have a 1st gen ipod touch which has no volume buttons, when i press the home button twice to open the music window, it says "dock connector" tell if I'm missing something, i haven
-
How to see list of Pending Scheduled reprots?
Hi in XIR2 i have total of 60 reports in Repository if I click on each report history can see the instance history i have couple of them in Recurring how to see the list of the scheduled documents waiting ?? thanks
-
DW CS3 (Mac): Previous versions of DW allowed you to check all links site-wide, and (if a link was broken) to change it in the Link Checker window. (Normally this would crash in DW MX..) With CS3 double clicking on the incorrect link appears to open
-
Placing Photoshop files in Illustrator CS5 results in wrong percentages of spot colors?
When placing a native PSD file into Illustrator CS5 that includes different percentages of spot colors they will be different than what was specified in Photoshop. The spot colors are overlaying CMYK to create a see thru look. For example if the spot