Resizing image to constant total pixels

I have a number of images of differing sizes and aspect ratios that I want to all have the same number of total pixels - Width x Height to be a constant 3 Megapixels.  They are all greater than this at present so will be requiring downsizing.  I usually use Russell Browns Image Processor Pro, which is great if I needed all the widths or heights to be the same.  But now I want the total Megapixels  (Width pixels  x  Height pixels) to be constant.  Can anyone enlighten me on how to do this?
Thanks

In order to do that you will need to fit the images into a canvas the is 3MP is size then add pixels to fill in any transparent border area.  Its a two step batch action.   You need to decide what aspect ratio you  want your 3MP canvas to have.  Step one automate  Fit image to that canvas size step two Canvas size that 3MP canvas size. If you have a mixture of Lanscape image and Portraits you may well consider a square canvas  1732x1732 = 2,999824 MP

Similar Messages

  • Cannot Resize Images in Elements 8

    Hi,
    I recently had my laptop stolen and I had to reinstall in Elements 8 on my new computer. Since then, I have unable to resize images. I go to Image -> Resize -> Image Size and the pixel dimensions box is grayed out and I am unable to change the pixel dimensions. The document size function works fine and is not grayed out.
    It's very odd and frustrating. Perhaps a simple fix, but I am totally stumped.
    Thank you for any assistance you can give.

    In order to change the pixel dimensions you must first turn on the Resample Image checkbox, since shedding or adding pixels necessarily involves resampling. Try it with that turned on.

  • Conditionally resize images - error

    I am trying to conditionally resize images based on their pixel range but when I run my script all my images are sizing down to 900 pixels, regardless of size.
    I think my conditional is incorrectly written,  can someone help me out
    Thanks!
    TK
    #target photoshop
    app.bringToFront();
    function fitImage(newImgSize) {
    var  doc=activeDocument;
    if (doc.width > doc.height)  {doc.resizeImage(newImgSize, null, null, ResampleMethod.BICUBICSHARPER);}
    if (doc.width < doc.height)  {doc.resizeImage(null, newImgSize, null,ResampleMethod.BICUBICSHARPER);}
    if (doc.width == doc.height)  {doc.resizeImage(newImgSize, newImgSize, null,  ResampleMethod.BICUBICSHARPER);}
    var doc =  app.activeDocument;
    if (parseInt(doc.height,  10) > '1200px') {fitImage (1800,300);}
    else if  (parseInt(doc.width, 10) > '1200px') {fitImage (1800,300);}
    else  {fitImage (900,300);}

    Problems with UnitValues. Try this to get the conditional part right:
    if (doc.height.as("px")   > 1200) {fitImage
    (1800,300);}
    else
    if  (doc.width.as("px") > 1200) {fitImage (1800,300);}
    else 
    {fitImage (900,300);}

  • Resizing images in pixels instead of inches?

    How do I set the software of Elements 10 to resize images in pixels instead of inches?

    By going to Preferences.  This is done by doing:
    Edit >> Preferences
    And look for something like this:
    As you can see from the picture, it is under Units and Rulers.  Perhaps you can tell us what exactly are you trying to do?  For print, inches and cms are very common, For screen and web pixels is very useful.  For documents, points is useful;  but this is just a "rule of thumb" and people use it interchangeably these days because they have got used to different unit types.

  • Cropping/resizing image by pixel dimensions

    I am trying to crop or resize an image that is originally 2,122 x 1,415 px | 7.1 x 4.7 in | 300 dpi. I am to crop/resize image to fit 756 x 275 px. However, I don't want to lose the whole image. I would like to use the whole image just adjust it to the dimensions.
    How can I accomplish this without creating any distortion or by removing elements by cropping the image?

    Hello Slange,
    may I propose a solution based on a more mathematical derivation, where I assume the height of 275 px is decisive. The way is the same, if the 765 px width is important.
    The reduced copy of 2122 x 1415 provides 412 x 275. To the wished 756 you need: 756 - 412 = 344. Splitting it into two parts I'll get 344 : 2 = 172. These I mount now (The black borders are only for better overview.) to an image with the wished measures 756 x 275:
    The white area you can fill it with any suitable color.
    Hans-Günter

  • Problem with getting resized image's bytes

    I've got a problem with getting correct bytes of a newly resized image. The flow is that I retrive an image from the filesystem. Due to the fact that it is large I resize it to a 50x50px thumbnail. I can display this thumbnail in #benchmark1 (see code below). Unfortunately something's wrong with my imageToBytes funtion which returns reasonably small size of image but is totally useless - I can't make an image of it anymore so at #benchmark2 the application either crashes or keeps freezing. I saved this byte array on my disk and tried to preview under Windows how does it look but I got a message "Preview unavailabe". I did some digging in the Internet and I supposed that it's because I don't use any jpg or png encoders to save the file. Actually I think that it's not the case, as the bytes returned from method imageToBytes look weird - I cannot even make a new image of them and display it without any saving in memory.
                                  byte[] bytes = FileHandler.readFile (
                                          FileHandler.PHOTOS_PATH, fileName);
                                  Image img2 = Image.createImage (bytes, 0, bytes.length);
                                  img2 = ImageHandler.getInstance ().resize (img2);
                                                    //#benchmark1
                                  bytes = ImageUtils.imageToBytes (img2);
                                  img2 = Image.createImage (bytes, 0, bytes.length);
                                                    //#benchmark2my imageToBytes function is as follows:
         public static byte[] imageToBytes (Image img)
              int[] imgRgbData = new int[img.getWidth () * img.getHeight ()];
              byte[] imageData = null;
              try
                   img.getRGB (imgRgbData, 0, img.getWidth (), 0, 0, img.getWidth (),
                           img.getHeight ());
              catch (Exception e)
              ByteArrayOutputStream baos = new ByteArrayOutputStream ();
              DataOutputStream dos = new DataOutputStream (baos);
              try
                   for (int i = 0; i < imgRgbData.length; i++)
                        dos.writeInt (imgRgbData);
                   imageData = baos.toByteArray ();
                   baos.close ();
                   dos.close ();
              catch (Exception e)
              return imageData;
    I've run totally out of any idea what's wrong, please help!
    Edited by: crawlie on Jul 17, 2010 6:21 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hey Crawlie,
    Please note that simply writing int values into ByteArrayOutputStream will not suffice. Please have a look at the following conversion from int pixel value into byte[4]:
    public static final byte[] intToByteArray(int value) {
            return new byte[] {
                    (byte)(value >>> 24),
                    (byte)(value >>> 16),
                    (byte)(value >>> 8),
                    (byte)value
    }Good Luck!
    Daniel

  • Display picture in messages totally  pixelated when seeing it with yahoo messenger for windows

    Hello,
    I'm using messages to chat with my yahoo messenger account  at work and yahoo messenger for windows at home.
    When I log into Yahoo with messages, my yahoo display picture is updated automatically with the one I have choose in messages.
    My problem is that this picture is totally pixelated when you see it on yahoo messenger for windows. It seems that Messages is changing its size.
    As the size in Yahoo messenger for windows is bigger it appears pixelated!
    If I choose no display picture in messages, the one I have choose with yahoo messenger for windows disappear when I'm logging with it.
    Is there a way that messages do not update the display picture each time I'm logging to Yahoo?
    I suppose that there is no solution to this problem but I wanted to be sure.
    Anyway thanks for your help.

    HI,
    Thanks for the Path.
    This does seem to show all the Recents from the Contacts App > My Card, the Login Pic and the Messages Buddy List pic.
    I think in Mountain Lion these were either separate items  or the .plist that is in the current place listed the app/location the pic was used.
    I have looked at the pictures in the folder (.png and thumbnail .tiffs) and the .plist and it does seem to be all the pics I have used in all three places over the last few months.
    The Yahoo account is logged in not through IMAgent that FaceTime and Messages use for other Accounts but from the IMServicePluginAgent.
    In Mountain Lion this used to list a Buddy Pic server as well as a straightforward login.
    Using Little Snitch I am not seeing that in Mavericks.
    Seems you may have to change your Pic on a web page for your Yahoo account.
    Edit
    for the Points
    9:22 pm      Friday; November 8, 2013
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    Message was edited by: Ralph Johns (UK)

  • Need help on quality of resized image!!

    I am required to resize images to max 1240pixel (longest dimension) as a submission of work, though when work is viewed it will be at 30"x40".  Can not figure out a way to do this where images don't become quite pixelated when viewed at larger size.   Appreciate any suggestions. 

    Is there some software to verify if my graphics card is shotty?
    Techtool Pro has some testing, the AHT tests VRAM, but game benchmarks and stressing will tell you the most.
    Is re-seating the graphics card or memory worth trying?
    Absolutely. Just don't reinstall the graphics card until you clean it thoroughly.
    Cleaning the dust out of my machine?
    YES. A dust filled graphics card heatsink will cause the GPU to cook, and cause problems thet you describe.
    If I need a new graphics card, what are my options? Do I have to purchase it via Apple store? I would like to stick with an Nvidia card so am I stuck buying the same card I currently have or can I upgrade?
    You don't have to buy from Apple, but using with OS X limits your choices to Mac compatible or flashable PC versions.
    There is an awful lot of user input into this topic here:
    http://blog.macsales.com/602-testing-those-new-graphics-cards
    Card reviews can also help:
    http://www.anandtech.com/video/showdoc.aspx?i=3140&p=9
    http://www.tomshardware.com/reviews/radeon-hd-4870,1964.html

  • I need some help resizing my images on PS6. I am using a mac and have been trying to resize with same resolution and constaining proportions but for some reaseon the smaller resized image appears pizelated.

    I need some help resizing my images on PS6. I am using a mac and have been trying to resize with same resolution and constaining proportions but for some reaseon the smaller resized image appears pizelated. Heres an image of before and after. The first image I use is a JPG 72dpi 1500px x1500px and I want to downsize it to 600x600px same res, but it keeps pixelating, this has never happened before. Any suggestions, thoughts?
    thanks!

    I wouldn't say pixelated; more like blurry.
    Like ConnectedCreative said, what steps are you using? Are you using "bicubic sharper" when resizing down?

  • Resized images and video seam blurred in motion 4...

    Hello,
    I don't know if my problem is a bug or a stupid mistake I did, or something basic I haven't understood about motion, but here it is:
    I had to edit today a project I created in september 2009 with motion 3. (I installed 2 weeks ago motion 4). The project is made of images and text. When I opened the old project the images looked ok but seamed blurred although the render settings are at best quality.
    I then made an experiment and created a new project in Motion 4 and imported one image, and when I put the quality at best, again this image look unfocused. I would probably not have noticed the problem and thought that the problem comes from the image or from the capabilities of motion, if I didn't have that old video done in motion 3 with the exact same images in the exact same size in perfect crisp quality...
    I did a research in forums, but haven't found any one with a similar problem. People usually have pixelated images because they didn't put the best render quality...
    I then tried to test this on a different computer with motion 4: same problem. I tried all the settings I could find in Motion, but still no result. I trash the preferences, I repaired the permission of my mac, I reinstalled motion 4, tried several images format and size but still no result.
    I noticed that the problem occurs when I resize an image or when I resize a video. At 100% I get perfect quality, but when I resize them, they look blurred. Anything that requires a render seam to be a little blurred when the render quality is set to best. It seams like the anti-aliasing is working so well that it blurs everything... If I put the quality at normal settings, the elements that have been resized look sharp but pixelated...
    I haven't tried to test all this again in motion 3 because I don't have access to any computer that still have that version installed. And I haven't phoned applecare yet because they are closed right now in my country, but I will phone them tomorrow morning and let you know if I get any result with them.
    I really hope I simply forgot something obvious, or maybe there is a new or old setting in motion 4 that I don't know about or haven't understood properly...
    please help me
    Louie
    ps: My version of Motion is French, so I might not use the right english words used in the english version of Motion.

    Thanks for responding.
    I'm of course sizing my picture down. The project I was working on yesterday that helped me notice the problem is 300x300 pixels and the images are around 500x1000 pixels, scaled down to around 20%.
    I haven't notice today that the problem occurs in other project as well. Before I was not looking in detail at the quality, and if no one tells you about it, you won't notice it. But right now all my old projects done in Motion 3, once opened in Motion 4 seam to have that blurry effect on any image or video that is scaled down.
    I understand that Motion might maybe not be very good at scale down things, and might do it less perfetly then Photoshop. But what is odd is that all my old video exported when I had Motion 3 have sharp perfect scaled down images comparred to what I get today in Motion 4.
    The blur I'm speaking about is very light. You won't notice it easily unless you have an old version of the same video to compare it with. But in the project I was working yesterday at 300x300 pixel, the difference was really very obvious, because at this size every detail counts.
    My idea to solve my problem temporarly was to change my Motion project settings to triple its original size (from 300x300 to 900x900) and blow up everthing 300%, export the video at 900x900 and then scale it down through Quicktime instead of Motion at 300x300. This worked and my images are as sharp as they should be. This project is short and light, so I didn't mind doing this conversion, but when I will work with projects that need more render time, it's not a productiv way to work!
    I noticed another odd thing about the problem, I hope I will explain this clearly by describing 3 situations:
    1. I create in Motion 4 a new project with any preset.
    2. I import an image or a video
    3. I scale it down, by pulling one corner (=> the image or video becomes blurred)
    4. In the properties inspector I type the word "100" to get it back to 100%
    => the image is still blurred, it is difficult to see, but when I import again the same image and put it next to it you can see a difference althought both image are at 100%!!!
    or
    1. I create in Motion 4 a new project with any preset.
    2. I import an image or a video
    3. I scale it down, by pulling one corner (=> the image or video becomes blurred)
    4. In the properties inspector I click on the arrow in the top right corner of that reverts to the original settings the image or video
    => the image is perfect
    or
    1. I create in Motion 4 a new project with any preset.
    2. I import an image or a video
    3. I scale it down, by typing any number in the properties inspector (=> the image or video becomes blurred)
    4. In the properties inspector I type the word "100" to get it back to 100%
    => the image is perfect
    So it seams that my problem occurs even at 100% but only if the image has first been modified in its size by pulling one corner and than put back to 100% through the properties inspector...
    hmmmm
    very odd.
    Louie
    Message was edited by: Louie13

  • 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 HD    

    Hi, 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.

  • Iphoto resize images

    I am new to iphoto and need to constantly resize images for internet use. How do I change the resolution or pixels??????? or what ever Mac might call it.
    thank you SO much
    Eleanor

    Personally I have never liked iPhoto for doing anything with an image. GraphicConverter for the Mac is a VERY extensive graphics application that can do about anything you care to do to an image. It is not the same type of program as Photo Shop but you can check it out for a free trial.
    Back to iPhoto, you can go to Share in the menu and email the photo to yourself at one of 3 sizes. This changes the resolution. And yes, Macintosh uses words like pixel and resolution just the same as everyone else.

  • How to resize Image Jpeg ?

    I have a problem when I scale file image Jjpeg.
    My code :
    public void resize(Image img){
    BufferredImage bimg = toBufferedImage(img);
    AffineTransform tx = new AffineTransform();
    tx.scale(125,125);
    AffineTransformOp op = new AffineTransformOp (tx,AffineTransformOp.TYPE_BILINEAR)
    bimg = op.filter(bimg, null);
    public static BufferedImage toBufferedImage(Image image) {
    if (image instanceof BufferedImage) {
    return (BufferedImage)image;
    // Determine if the image has transparent pixels; for this method's
    // implementation, see e661 Determining If an Image Has Transparent Pixels
    boolean hasAlpha = hasAlpha(image);
    // Create a buffered image with a format that's compatible with the screen
    BufferedImage bimage = null;
    GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
    try {
    // Determine the type of transparency of the new buffered image
    int transparency = Transparency.OPAQUE;
    if (hasAlpha) {
    transparency = Transparency.BITMASK;
    // Create the buffered image
    GraphicsDevice gs = ge.getDefaultScreenDevice();
    GraphicsConfiguration gc = gs.getDefaultConfiguration();
    bimage = gc.createCompatibleImage(
    image.getWidth(null), image.getHeight(null), transparency);
    } catch (HeadlessException e) {
    // The system does not have a screen
    if (bimage == null) {
    // Create a buffered image using the default color model
    int type = BufferedImage.TYPE_INT_RGB;
    if (hasAlpha) {
    type = BufferedImage.TYPE_INT_ARGB;
    bimage = new BufferedImage(image.getWidth(null), image.getHeight(null), type);
    // Copy image to buffered image
    Graphics g = bimage.createGraphics();
    // Paint the image onto the buffered image
    g.drawImage(image, 0, 0, null);
    g.dispose();
    return bimage;
    }

    This is my code :
    private ImageIcon getImageIcon(String path){
    ImageIcon iIcon = new ImageIcon(path);
    if(iIcon.getIconHeight() > 125 || iIcon.getIconWidth() > 125){
    Image img = iIcon.getImage();
    int iw = img.getHeight(null);
    int ih = img.getWidth(null);
    BufferedImage bImage1 = toBufferedImage(img);
    BufferedImage bImage2 = new BufferedImage(400,400,1);
    AffineTransform tx = new AffineTransform();
    tx.scale(400,400);
    AffineTransformOp op = new AffineTransformOp(tx, AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
    BufferedImage bImage3 = op.filter(bImage1, bImage2);
    img = Toolkit.getDefaultToolkit().createImage(bImage2.getSource());
    return (new ImageIcon(img));
    if(iIcon == null)
    return null;
    return iIcon;
    public static BufferedImage toBufferedImage(Image image) {
    if (image instanceof BufferedImage) {
    return (BufferedImage)image;
    // Determine if the image has transparent pixels; for this method's
    // implementation, see e661 Determining If an Image Has Transparent Pixels
    boolean hasAlpha = hasAlpha(image);
    // Create a buffered image with a format that's compatible with the screen
    BufferedImage bimage = null;
    GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
    try {
    // Determine the type of transparency of the new buffered image
    int transparency = Transparency.OPAQUE;
    if (hasAlpha) {
    transparency = Transparency.BITMASK;
    // Create the buffered image
    GraphicsDevice gs = ge.getDefaultScreenDevice();
    GraphicsConfiguration gc = gs.getDefaultConfiguration();
    bimage = gc.createCompatibleImage(
    image.getWidth(null), image.getHeight(null), transparency);
    } catch (HeadlessException e) {
    // The system does not have a screen
    if (bimage == null) {
    // Create a buffered image using the default color model
    int type = BufferedImage.TYPE_INT_RGB;
    if (hasAlpha) {
    type = BufferedImage.TYPE_INT_ARGB;
    bimage = new BufferedImage(image.getWidth(null), image.getHeight(null), type);
    // Copy image to buffered image
    Graphics g = bimage.createGraphics();
    // Paint the image onto the buffered image
    g.drawImage(image, 0, 0, null);
    g.dispose();
    return bimage;
    When I recieve Img3 which is not same original Image (img1)
    Please help me ?

  • How to resize image on my mac?

    How to resize image on my mac?

    What version of Mac OS X do you have? In Preview under 10.9 Mavericks (I believe 10.8 too), this is what I see:
    The padlock is next to the unit (pixels, etc) selection box.
    Matt

  • How to proper resize images and videos at runtime without losing quality?

    Hi guys. I need a bit of help here.
    I've built a flash site in which i want to resize a movie to the stage. I do it by keeping the proportion, thus i only resize the width and then i resize the height acordingly to the new width but keeping the proportion.
    The problem is that my film still looks "pixeled".
    I found a website on which the stage resizes dinamically with the movie and the background images without either of them losing quality. Till now i knew that resizing images or videos in flash at authoring or runtime produces pixeled results.
    This is the website: http://kampanjeweb.apt.no/jotun/romforrom/. Can someone tell me how do they do it without losing quality? just make the browser windowed and resize the margins to see the effect.
    Thanks.

    Hello, Venian.
    About the video, you could try setting the flash.media.Video's smoothing property to TRUE. This should keep a quality, but you can do nothing if the video has a poor quality. You need a great video.
    About the images, you you need to redraw the image each time you resize it. To achieve it, use a combination of Bitmap, BitmapData and Matrix classes. Any doubt, just call again. Here is a simple example:
    var scale:Number = .5;
    var highQualitySourceImage:Bitmap = ...your image...;
    var scaleMatrix:Matrix = new Matrix();
         scaleMatrix.scale(scale, scale);
    var bitmapData:BitmapData = new BitmapData( scale*highQualitySourceImage.width, scale*highQualitySourceImage.height);
         bitmapData.draw(highQualitySourceImage, scaleMatrix);
    var finalBitmap:Bitmap = new Bitmap(bitmapData);
    addChild( finalBitmap );
    Cheers,
    CaioToOn!

Maybe you are looking for

  • Sales Order is closed, but supply/demand screen shows it as a demand

    Hi folks, I have peculiar issue here, My Item on a sales order is shipped out, but it is still showing as a demand in the supply/demand screen in the inventory. It is of Demand Type 'Purchasing Supply reservation'. The supply/demand screen can be acc

  • New plugin in 10.4.7

    hey guys, I found this discussion somewhere else, but no one came up with an answer: any takers here? (PS, I'm totally ignorant of what it is, just copying and pasting): The very, very recently released Mac OS X 10.4.7 update installs something calle

  • Video app just goes blank

    We've just bought an IPad 2, love it but we now cannot play videos from ITunes using the videos app. It constantly displays a blank screen when opened even after the app has been killed and the iPad has been rebooted. Any ideas please?

  • IMessage and FaceTime not working on Mac Pro and message stating to contact Support came on

    iMessage and FaceTime not working on Mac Pro and a message stating to contact Support came on with a verification code.  It was working on 8/29 but stopped on 8/30.  When I called support to even speak with anyone they wanted $19.  I don't want to pa

  • Creating of an alias failed

    Hi @ all, during the creation of an alias on icloud.com I got the following error after I have filled out the form and submitting the entries. "Alias can't be saved" that's all and the new alias wasn't created. Any ideas?? Rgds, Mike