The second parameter for wp_get_attachment_image_src
is $size
.
$size
(string/array) (optional) Size of the image shown for an image attachment: either a string keyword (thumbnail, medium, large or full)
or a 2-item array representing width and height in pixels, e.g.
array(32,32)
. As of Version 2.5, this parameter does not affect the
size of media icons, which are always shown at their original size.http://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src
Per that Codex entry $size
can take string values of “thumbnail, medium, large or full”. You need “full” to get the full size image, which ought to be the original.
It seems to me like you could save yourself a little bit of trouble with wp_get_attachment_image
instead of wp_get_attachment_image_src
Related Posts:
- Separate Media Library for each user
- Maintaining image color and quality when uploading using custom sizes
- Bulk edit wordpress images alt and title attributes
- Upload Image Not accessible
- Which are precisely the predefined image sizes?
- Separate attachment images from post loop
- Caption in Page adding unwanted 10px to width
- Adjust image caption within visal editor
- Change Image URL to a CDN
- Why can’t I edit certain images from the WordPress Media library?
- How to add a media with PHP
- Responsive Images – Add srcset attributes to custom Images Function
- Get original image from thumbnail URL
- Loss of sharpness in jpg imported as header in twentyeleven
- WordPress url image redirect to the homepage
- Bulk image rotation
- Can I the caption shortcode to set caption to a data attribute, and with the image’s alignment intact?
- Is there a way to delete images from WordPress media library programmatically?
- get the image of the post
- Update image links in database
- ACF Image ID, echo the alt tag
- WordPress – different icon image depends of comment number
- Change WordPress Media Manager
- How to stop images from being wrapped in tags?
- Pull Random Attachments With Pagination
- Upload media files to Amazon S3
- Out of memory error reporting
- How to get default image sizes attribute
- Remove the inline styling added in wp_get_attachment_image()
- Image not shown in the theme as it’s showing in HTML template [closed]
- Broken image links even though links are correct and images exist
- Broken Images until Page Refresh
- Show image crop window on image upload
- Get image from parent category
- Images attached to posts from library link to 404 error page
- Images not displayed when moving site to local
- Caption and title in img alt tag are the same?
- fetch images and videos
- Specific image size is being generated without being registered
- Should I not compress my jpeg files before uploading to avoid double compression?
- Generating a certain sized thumbnail on the fly?
- How to display title of attached image in post?
- Getting thumbnail of uploaded image
- Display image for first sticky post only
- Get all image IDs from the Media Library
- Link listings with image
- Allow users to contribute images to a post
- Can’t add image to site via php
- After Migration, images show up on a preview of the page but not the actual page [closed]
- Is it possible to enable the ‘Link To’ field under ‘Attachment Display Settings’ for a Featured Image?
- How to apply image alt descriptions from media library?
- Save Image in wp_options-Table
- Can I register a new thumbnail size and have it be an option in “Add Media”?
- Image upload error?
- Is it possible to get feature image url (full-size) from an image url of smaller size?
- How to pass on a value as parameter via url to another page
- Image not showing using a custom function and get_post_meta
- Random home page background images with caption text
- How to add “alt” attribute for image during upload at WP front-end?
- image URL changed in wordpress
- image upload/edit is broken: “Image data does not exist. Please re-upload the image.”
- Maximum image width/height?
- How can we upload common images only to AWS S3 using WordPress?
- Deleted Image giving a 301
- wpdb function for filtering the images by title
- Link to products with the same image title (woocommerce)
- How to echo images Urls from a wordpress post, that are relally in the post
- Adding Post Thumbnail to Metro Pro Theme
- media_handle_upload() with 1 image under 1Mb chokes my server and returns timeout error
- WordPress does not load most theme images
- convert images and media url into blob url
- How to find the largest images in wordpress post
- New portfolio items appearing smaller on the grid
- Image automatically resized
- Theme page headers and rotator images not assigned after website migration
- Images Wont Display After Importing From Old WordPress
- Image thumbnail on single product issue | WooCommerce
- How can I hook and edit on the fly an image uploaded
- Anomaly with response coming from XML RPC Api get Post (integer out of range)
- Make all images displayed in single.php a certain size
- Create a custom attachment thumbnail for quick page load
- Change the image for a certain URL
- I am trying to get metabox image with custom size
- Removing image dimensions from `the_content`
- Is there a different way to grab a thumbnail image than this?
- Multiple gallery thumnbnails on one page
- Change image link in excerpt to point to post
- Putting the title attribute in image tag — Snapshot Theme from Woothemes
- Post migration – images do not display
- Change the avatar ratio?
- wp_handle_upload Image sizes
- Display Images from Array with wp_get_attachment_image() [closed]
- Can I turn an image into a button?
- Why are some SVG-images not visible in my footer?
- How To Get Feature Image from Blog in Same WordPress Multisite Blog on the Parent Blog?
- WPALLIMPORT Exporting images from repeater field [closed]
- What does WordPress media uploader do to image files on upload?
- Site header logo and parallax image on homepage do not display on iPhone
- image_get_intermediate_size always returns false
- Change of displayed images for webp versions