Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 3 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.