WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to get the original image with the same width and height as uploaded.

My original image is 630*370.

Using the following function call I get a thumbnail sized at 630*198.

wp_get_attachment_image_src($PriImgId,array('630','370'));

How can I get it at 630*370

share|improve this question
up vote 10 down vote accepted

Try this :

wp_get_attachment_image_src( $PriImgId, 'full' );

Also, for more options see the Codex.

share|improve this answer
1  
Thanks it works – Gowri Jun 23 '11 at 6:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.