resize

CodeIgniter resize() problem

Function: function do_upload() { $config = array( 'allowed_types' => 'jpg|jpeg|gif|png', 'upload_path' => $this->gallery_path, 'max_size' => 2000 ); $this->load->library('upload', $config); $this->upload->do_upload(); $image_data = $this->upload->data(); $config = array( 'imag...

Error trying to transform image < 1 MB in App Engine

So I know that App Engine prevents working with images greater than 1 MB in size, but I'm getting a RequestTooLargeError when I call images.resize on an jpg that is 400K on disk. The dimensions of the jpg are 1600 x 1200, so is it that app engine can't handle resizing images over 1 megapixel, even if the image file itself is a compressed...

Resize and saving an image to disk in Monotouch

I'm trying to resize an image loaded from disk - a JPG or PNG (I don't know the format when I load it) - and then save it back to disk. I've got the following code which I've tried to port from objective-c, however I've got stuck on the last parts. Original Objective-C. This may not be the best way of achieving what I want to do - any...

resize popup window based on content width and height

I've an html page with varying size. Based on the conditions i hide some contents. How can i get the width and height of the body with javascript, so that i can resize the window size dynamically based on the amount of contents of the page. Thanks... ...

Distortion when resizing/scaling WPF Image

I have a program that displays an image, and the user can resize the image in the window (e.g. by rolling the mouse wheel). I scale the image using a RenderTransform, like this: <Image x:Name="CurrentImage"> <Image.RenderTransform> <TransformGroup> <TranslateTransform x:Name="Translate" X="0" Y="0"/> ...

Use a jquery UI slider to control the resizing of a youtube video.

Hi, I have a resizable div with the video width and height 100% of the div. I can resize it using the corners but I want to control this with a ui slider and maintain the "aspectRatio: 16/9" that .resizable() provides. This is what I have so far <script> $(function(){ var slide_int = null; function update_slider(){ ...

PHP Image resize - Why is the image uploaded but not resized?

BACKGROUND I have a script to upload an image. One to keep the original image and one to resize the image. 1. If the image dimensions (width & height) are within max dimensions I use a simple "copy" direct to folder UserPics. 2. If the original dimensions are bigger than max dimensions I want to resize the width and height to be within...

Image resizing client-side with javascript before upload to the server

I would like to know if it is technically possible to resize an image at a client-side with javascript (really resize, not just change width and height). I know it's possible to do it in flash but I would like to avoid it if possible. Is there any open source algorithm somewhere on the web? ...

FloatableWindow resizes Grid in Silverlight

I'm trying to use Tim Heuer's FloatableWindow control for a non-modal options window in my Silverlight application. However, I'm running into a problem with the FloatableWindow resizing it's parent grid when it opens. For example, before I open the window the application looks like this: But after opening the window, the first row of ...

Resize PNG image

HI! Could you please tell me how to resize a .png image. Or better give an example. I've been searching for the answer for a long time and it seems that nobody knows how to resize a .png image and keep its transparency. :( ...

Client side image resize and ftp component

I am looking for a component that resizes and ftp's images to a website. It doesn't have to be free. In fact, I prefer something we pay for that comes with solid support. It has to be able to transfer multiple images at once too. We work in an ASP.NET MVC environment but the component could be in Flash or Java. ...

Resize an 8bpp bitmap in GDI+

I've just noticed that GDI+ doesn't like the Graphics.FromImage() method to be called with an image that is 1bpp, 4bpp, or 8bpp. Is there any way of resizing an 8bpp image without changing from 8bpp to 24bpp, resizing, and then changing it back to 8bpp? ...

Flex3: How can I make a container resize based on the size of its contents?

FYI, I'm a Flex newbie. I'm trying to create a Flex application that can automatically shrink based on the size of the components that it contains, so that a user can shrink it to a minimal view to see more of the HTML page it's embedded in. I know how to change the size of the whole application using ExternalInterface, but I'm having ...

Creating Thumbnails with CFImage Aborting Because of Server Load?

I am uploading in image via a form and I want to, in addition to saving the image, save a variety of thumbnails in both png and jpg format. To do this I am using the code below. The initial image uploads fine but then, after spinning for a moment I get an error of: "Request aborted due to heavy system load." (from my host crystaltech)...

Direct3D device resizing

My application has a panel control associated with a Direct3D device. My problem is that when the panel is resized the backbuffer isn't resized accordingly witch leads to a bad quality in the direct3d display. How can I handle my panel resizing to set up correctly the device? ...

which event should i handle to adjust the size of controls on winform?

when my form is shown, i want to adjust the height of certain control, i do this in the Shown Event handler, it doesn't work, so which event should i handle? ...

Resizing qt widgets when their children are hidden

I have the situation in the following image: How would I go about resizing the widget when the retry child is hidden so that it looks as in the first image? The main layout is a QVBoxLayout, the retry child is a widget with a QVBoxLayout as well. I've tried the following: update() updateGeometry() setGeometry(childrenRect()) layout...

How to resize a flash animation to fit HTML container?

Hi there, I have a flash animation with the size of 1280x1024 and I want to embed it into an HTML file. I want the flash file to be displayed in 800x600. This is my code: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <body align="center"> <object> <param name="movie" value="/flash/connect.swf" /> <embed ...

Resize a WPF window, but maintain proportions?

I have a user resizable WPF Window that I want to constrain the resizing so the aspect ratio of the window stays constant. Ideally I would like to constrain mouse location when the window is being resized by dragging a corner to positions that maintain the proper aspect ration. If an edge is resized with the mouse, the other dimensio...

Problem modifying a dxGrdid in subclass form

Hello, I made a form class in c# that has a devexpress grid, a label and a button, all of them are declared as protected. I created a subclass of that form but, when I try to move or resize the controls, the grid is locked (only the grid, not the other controls). I checked the locked property, but it's set on false Any idea? thanks ...