Three20 setting thumbnail photo size - three20

Three20's photo aplication sets the photo size of the photos which are expanded from thumbnail photos. I want to resize the bigger image into thumbnail size keeping the aspect ratio same. But there seems to be no delegate method to do the same. How to set the size of the thumbnail photos?
I'm getting this exception
TTDASSERT failed: 0 == _queue.maxContentLength || contentLength <=_queue.maxContentLength
for one of my photos that's not getting displayed neither on thumbnail nor on expanded view.
How to fix this?
Thanx in advance.

I figured this out...
Set
[[TTURLRequestQueue mainQueue] setMaxContentLength:0];
in your application delegate... Setting it to 0 will let any image through, no matter how large..

Related

Change images dimensions - Error at massively import - Prestashop 1.7

I have observed abnormal behavior in my shop when bulk importing or uploading images through the backend. The images are filled in white to a certain size.
To solve that I have changed the size parameters in the image "product_default" in Design> Image settings.
When I did this, the uploaded image was displayed correctly, but when I clicked to display in full size, it was completely distorted.
I attach some explanatory screenshots.
Thanks in advance.
** SOLVED **
The solution I was found was change all dimension for all the images to preserve te square relation.

Google Image Serving URL resize getting error

I want to resize my google serving url image with size 0px and crop.
My link as below getting error:
http://lh3.googleusercontent.com/AB-uiNFQXbUfnIZ6NXNJg-XNjN_smoMbY4SwkqAdPEQKxshtkWp0hx0IR2bi87Hkd_5a3KgbHDj5fMPw6LXuGzZJxPHdJ5aLAVWFWDw=s0-c
But if remove the resize and crop as below, the image display successful.
http://lh3.googleusercontent.com/AB-uiNFQXbUfnIZ6NXNJg-XNjN_smoMbY4SwkqAdPEQKxshtkWp0hx0IR2bi87Hkd_5a3KgbHDj5fMPw6LXuGzZJxPHdJ5aLAVWFWDw
What's wrong with my link? If I change to to other size like s100 the image is worked also. Can anyone explain to me? Thanks.
Note: the problem is not seen only for the 0 size image (with or without cropping), but also for other sizes, for example 600:
http://lh3.googleusercontent.com/AB-uiNFQXbUfnIZ6NXNJg-XNjN_smoMbY4SwkqAdPEQKxshtkWp0hx0IR2bi87Hkd_5a3KgbHDj5fMPw6LXuGzZJxPHdJ5aLAVWFWDw=s600
Updated:
Link below with s0 is no error.
http://lh3.googleusercontent.com/4_q9hd8oKxXjW7QDM5faAE3iRsJcGdOF6l_XSCUQAD4Plzs0aipcULBMwncFmBAv7rTkUSjEzpzeX1tsAM1gU7d1SqLkMfTrhSjP8F8C=s0-c

Wordpress upload image size

Kinda new to wordpress.. Creating my own theme. When I upload an image and put it in a post it comes out at 300x183 pixels but the original file I upload is 1800x1100 pixels. Wordpress alters my size when i upload it.This is what i get in the url on the post NDAppleProductMockUp-300x183.jpg.. It restricts the size of the image. When i go into the image properties within the post and click original nothing happens it stays at 300x183.. I have tried to work it out but can't Any suggestions guys..
Thanks
Unfortunately, WordPress does not resize the actual image that you upload. It creates 3 smaller versions of it, leaving the uploaded image untouched. I would suggest that you create all of your images at 1800x1100 before you upload them.
Another solution would be to link to the "big-sized" image when you "Insert into Post"... unfortunately, you would have to know the filename of the large image. I check the source code and this part of the media system does not appear to be pluggable.
Another option may be to check out this plugin:
http://wordpress.org/extend/plugins/nextgen-gallery/
This link here details how You can change what image size will be displayed
http://codex.wordpress.org/Function_Reference/add_image_size
also when u attach to post you can set the image size in the setting
THE SETTING is Before you attach the image!
you are trying to change an image that has already been attached (the attached image was in a mid or small size to begin with) so it is already at its original size.

Mediawiki Image Resizing - Trying to understand how it works

I have Mediawiki 1.21.2 installed. I have also set up ImageMagick on my server and have enabled it in LocalSettings.php. I have already read the Mediawiki's Images manual and I just need to clarify this:
If I am adding a plain image without adding the "thumb" option, will the image be automatically resized for the width I have mentioned or will it only skrink the dimension to that size but still has the original file size? For example, if I using this:
[[File:Sample_Image.jpg|250px]]
In the above statement, I can see that the image will be displayed with the maximum width of 250px. Lets say, if the original image is like 800px X 600px with a file size of 2MB, will the re-sized image for the above dimension will be reduced to only a few KB when the image is reduced to a width of 250px (or) will the image size shown in the article page will still have the original filesize of 2MB but only shrinked to 250px width but doesnt reduce the original filesize? I am just wondering since a lot of my users upload big pictures and these pictures have big file sizes. At the moment, I have added the image like this in my templates:
<div class="main_article_image">[[File:Sample_Image.jpg]]</div>
and then using css, I have minimized the image size like this:
.main_article_image {
max-width: 250px;
height: auto;
}
The current method resizes the images in the articles pages but the file size for these images are still huge and the article page takes too long to load. So I manually resize all images and upload a smaller size for images each time that takes more manual work. Therefore, I am trying to find out if adding the 250px with the image tag like: [[File:Sample_Image.jpg|250px]] will automate this work for me!
I have these settings on my LocalSettings.php for imagemagic:
$wgEnableUploads = true;
$wgGenerateThumbnailOnParse = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/local/cpanel/3rdparty/bin/convert";
Can someone please confirm if this will work? Am I doing it the wrong way by resizing it via css? I know adding "thumb" parameter resizes the image, but will it work the same if for plain images without the thumb parameter? If it will, then I need to edit all of my templates and I just want to confirm before I go ahead changing the templates. Anyone who can clarify this will be helpful for me.
Yes, it seems that a smaller image file is generated even without the "thumb" parameter.
For example if you check the help page on images with the example "[[File:Example.jpg|50px]]" and check the url of the small image that is displayed, you'll see that it uses the thumb version /thumb/a/a9/Example.jpg/50px-Example.jpg instead of the full-size version /a/a9/Example.jpg

Why does the add_image_size() function not create a copy of the thumbnail image in wordpress?

I have uploaded a photo in WordPress. I am trying to post a thumbnail of the image using a predetermined width while constraining the height proportionally.
In functions.js:
add_image_size('width-130', 130, 0, false);
On the page that outputs the thumbnail:
the_post_thumbnail('width-130');
According to the WordPress docs(http://codex.wordpress.org/Function_Reference/add_image_size), it says:
WordPress will create a copy of the post thumbnail with the specified
dimensions when you upload a new thumbnail.
Currently it is outputting the full thumbnail image with a width attribute of 130. This still requires the full size image to load, which is not what I want. I would like for WordPress to create an actual copy of the post thumbnail with the correct dimensions, and not just to set the width attribute. How can I achieve this?
I discovered my mistake.
Since I had not re-uploaded the image file, it was still trying to access the full size image which was the assigned image for that post, while adding the width attribute. Once I re-uploaded the image, the add_image_size() function is now actually creating a copy of the thumbnail with the correct dimensions.
I apologize for asking this question. If the community wants, I can close it but I figure it might be good reference for WordPress newbies such as myself.
Use this plugin to regenerate thumbnails.
http://wordpress.org/plugins/regenerate-thumbnails/
In case anyone runs across a similar problem, this may help. add_image_size generates derivatives that are smaller, but not bigger or the same size. Thus if you are trying to make a monochrome derivative image, uploading an image the same size as the monochrome, it will not be available and techniques like this one won't work.

Resources