Facing image loading issue from AWS S3Tactics for using PHP in a high-load siteHow do I create a Java string from the contents of a file?Deleting an element from an array in PHPSecure hash and salt for PHP passwordsHow do I get a YouTube video thumbnail from the YouTube API?Faster s3 bucket duplicationWhy do people use Heroku when AWS is present? What distinguishes Heroku from AWS?Upload image to server from JavaStore image with tag and prefix to query fast (s3 aws)
Cutting machine can't read vectors with strokes
What's the point of this scene involving Flash Thompson at the airport?
How to repair a laptop's screen hinges?
How is the idea of "X comes a distant third" commonly expressed in Russian?
Won 50K! Now what should I do with it
TikZ Can I draw an arrow by specifying the initial point, direction, and length?
What is temperature on a quantum level?
Why did my rum cake turn black?
Conciousness in Buddhism and Advaita Vedanta
Professor falsely accusing me of cheating in a class he does not teach, two months after end of the class. What precautions should I take?
Why limit to revolvers?
How can I legally visit the United States Minor Outlying Islands in the Pacific?
How did the hit man miss?
Why would an Inquisitive rogue choose to use Insightful Fighting as opposed to using their Cunning Action to Hide?
Why does the trade federation become so alarmed upon learning the ambassadors are Jedi Knights?
How do Windows version numbers work?
What does `[$'rn']` mean?
Is purchasing foreign currency before going abroad a losing proposition?
Should you avoid redundant information after dialogue?
Historic symbols representing peasants/oppressed persons fighting back?
A DVR algebra with weird automorphisms
Supporting developers who insist on using their pet language
What is this welding tool I found in my attic?
Was the Ford Model T black because of the speed black paint dries?
Facing image loading issue from AWS S3
Tactics for using PHP in a high-load siteHow do I create a Java string from the contents of a file?Deleting an element from an array in PHPSecure hash and salt for PHP passwordsHow do I get a YouTube video thumbnail from the YouTube API?Faster s3 bucket duplicationWhy do people use Heroku when AWS is present? What distinguishes Heroku from AWS?Upload image to server from JavaStore image with tag and prefix to query fast (s3 aws)
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have API in php and in that API I have upload images in AWS S3 is working as expected, however fetch data from S3 it takes too much time to load on a mobile device.
Can any one help me to fixed slow image load issue?
I'm looking best way to load fast image in android and IOS.
Note: I'm not using any thumb for image.
php amazon-web-services file amazon-s3
add a comment |
I have API in php and in that API I have upload images in AWS S3 is working as expected, however fetch data from S3 it takes too much time to load on a mobile device.
Can any one help me to fixed slow image load issue?
I'm looking best way to load fast image in android and IOS.
Note: I'm not using any thumb for image.
php amazon-web-services file amazon-s3
add a comment |
I have API in php and in that API I have upload images in AWS S3 is working as expected, however fetch data from S3 it takes too much time to load on a mobile device.
Can any one help me to fixed slow image load issue?
I'm looking best way to load fast image in android and IOS.
Note: I'm not using any thumb for image.
php amazon-web-services file amazon-s3
I have API in php and in that API I have upload images in AWS S3 is working as expected, however fetch data from S3 it takes too much time to load on a mobile device.
Can any one help me to fixed slow image load issue?
I'm looking best way to load fast image in android and IOS.
Note: I'm not using any thumb for image.
php amazon-web-services file amazon-s3
php amazon-web-services file amazon-s3
edited Mar 26 at 8:59
khushboo
asked Mar 26 at 5:19
khushbookhushboo
1231 gold badge1 silver badge18 bronze badges
1231 gold badge1 silver badge18 bronze badges
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
As you have mentioned image on mobile is taking time as this can be due to different sizes for different screen sizes. Ideally you should look forward for following options:
1) resize the images to the target size (thumbnail, preview, full size, ...) and have different sizes for different screen sizes.
2) use compression to compress your existing image file
3) Best option is to integrate CDN for Cloud-based image acceleration and delivery service.
Ideally, Using a CDN like Cloudfront is the first step towards accelerating images.
add a comment |
Use of single image size which is basically proportioned for a full desktop, results in slow loading as the image is larger than it needs to be for mobile. As a result, pages and images load slowly.
The best way you can load the fast image from your S3 bucket is using “AWS CloudFront” service.
CloudFront speeds up content delivery by leveraging its global
network of data centers, known as edge locations, to reduce delivery
time by caching your content close to your end users.
For deployment of CloudFront distribution please refer the below link:
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/GettingStarted.html
add a comment |
You should be able to use lazyload on the client side to address the slow loading issue.
Is this used on IOS and android also ?
– khushboo
Mar 26 at 5:56
add a comment |
you can use srcset and sizes Attributes for load in mobile because its allow us to serve different scaled images based on the size of the display.
SRCSET
example
<img srcset="responsive-images-car-160.jpg 160w,
responsive-images-car-320.jpg 320w,
responsive-images-car-640.jpg 640w,
responsive-images-car-1280.jpg 1280w"
src="reponsive-images-car.jpg" alt="responsive images car">
Sizes
<img srcset="responsive-images-car-160.jpg 160w,
responsive-images-car-320.jpg 320w,
responsive-images-car-640.jpg 640w,
responsive-images-car-1280.jpg 1280w"
sizes="(max-width: 480px) 100vw,
(max-width: 900px) 33vw,
254px"
src="responsive-images-car.jpg" alt="responsive images car">
for more information you can
click here
I need the solution for app side. (Android and IOS).
– khushboo
Mar 26 at 6:00
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55350311%2ffacing-image-loading-issue-from-aws-s3%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
As you have mentioned image on mobile is taking time as this can be due to different sizes for different screen sizes. Ideally you should look forward for following options:
1) resize the images to the target size (thumbnail, preview, full size, ...) and have different sizes for different screen sizes.
2) use compression to compress your existing image file
3) Best option is to integrate CDN for Cloud-based image acceleration and delivery service.
Ideally, Using a CDN like Cloudfront is the first step towards accelerating images.
add a comment |
As you have mentioned image on mobile is taking time as this can be due to different sizes for different screen sizes. Ideally you should look forward for following options:
1) resize the images to the target size (thumbnail, preview, full size, ...) and have different sizes for different screen sizes.
2) use compression to compress your existing image file
3) Best option is to integrate CDN for Cloud-based image acceleration and delivery service.
Ideally, Using a CDN like Cloudfront is the first step towards accelerating images.
add a comment |
As you have mentioned image on mobile is taking time as this can be due to different sizes for different screen sizes. Ideally you should look forward for following options:
1) resize the images to the target size (thumbnail, preview, full size, ...) and have different sizes for different screen sizes.
2) use compression to compress your existing image file
3) Best option is to integrate CDN for Cloud-based image acceleration and delivery service.
Ideally, Using a CDN like Cloudfront is the first step towards accelerating images.
As you have mentioned image on mobile is taking time as this can be due to different sizes for different screen sizes. Ideally you should look forward for following options:
1) resize the images to the target size (thumbnail, preview, full size, ...) and have different sizes for different screen sizes.
2) use compression to compress your existing image file
3) Best option is to integrate CDN for Cloud-based image acceleration and delivery service.
Ideally, Using a CDN like Cloudfront is the first step towards accelerating images.
answered Mar 26 at 5:45
Yash BindlishYash Bindlish
3951 silver badge7 bronze badges
3951 silver badge7 bronze badges
add a comment |
add a comment |
Use of single image size which is basically proportioned for a full desktop, results in slow loading as the image is larger than it needs to be for mobile. As a result, pages and images load slowly.
The best way you can load the fast image from your S3 bucket is using “AWS CloudFront” service.
CloudFront speeds up content delivery by leveraging its global
network of data centers, known as edge locations, to reduce delivery
time by caching your content close to your end users.
For deployment of CloudFront distribution please refer the below link:
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/GettingStarted.html
add a comment |
Use of single image size which is basically proportioned for a full desktop, results in slow loading as the image is larger than it needs to be for mobile. As a result, pages and images load slowly.
The best way you can load the fast image from your S3 bucket is using “AWS CloudFront” service.
CloudFront speeds up content delivery by leveraging its global
network of data centers, known as edge locations, to reduce delivery
time by caching your content close to your end users.
For deployment of CloudFront distribution please refer the below link:
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/GettingStarted.html
add a comment |
Use of single image size which is basically proportioned for a full desktop, results in slow loading as the image is larger than it needs to be for mobile. As a result, pages and images load slowly.
The best way you can load the fast image from your S3 bucket is using “AWS CloudFront” service.
CloudFront speeds up content delivery by leveraging its global
network of data centers, known as edge locations, to reduce delivery
time by caching your content close to your end users.
For deployment of CloudFront distribution please refer the below link:
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/GettingStarted.html
Use of single image size which is basically proportioned for a full desktop, results in slow loading as the image is larger than it needs to be for mobile. As a result, pages and images load slowly.
The best way you can load the fast image from your S3 bucket is using “AWS CloudFront” service.
CloudFront speeds up content delivery by leveraging its global
network of data centers, known as edge locations, to reduce delivery
time by caching your content close to your end users.
For deployment of CloudFront distribution please refer the below link:
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/GettingStarted.html
answered Mar 26 at 9:07
Aress SupportAress Support
8071 silver badge11 bronze badges
8071 silver badge11 bronze badges
add a comment |
add a comment |
You should be able to use lazyload on the client side to address the slow loading issue.
Is this used on IOS and android also ?
– khushboo
Mar 26 at 5:56
add a comment |
You should be able to use lazyload on the client side to address the slow loading issue.
Is this used on IOS and android also ?
– khushboo
Mar 26 at 5:56
add a comment |
You should be able to use lazyload on the client side to address the slow loading issue.
You should be able to use lazyload on the client side to address the slow loading issue.
answered Mar 26 at 5:25
pcgbenpcgben
5335 silver badges16 bronze badges
5335 silver badges16 bronze badges
Is this used on IOS and android also ?
– khushboo
Mar 26 at 5:56
add a comment |
Is this used on IOS and android also ?
– khushboo
Mar 26 at 5:56
Is this used on IOS and android also ?
– khushboo
Mar 26 at 5:56
Is this used on IOS and android also ?
– khushboo
Mar 26 at 5:56
add a comment |
you can use srcset and sizes Attributes for load in mobile because its allow us to serve different scaled images based on the size of the display.
SRCSET
example
<img srcset="responsive-images-car-160.jpg 160w,
responsive-images-car-320.jpg 320w,
responsive-images-car-640.jpg 640w,
responsive-images-car-1280.jpg 1280w"
src="reponsive-images-car.jpg" alt="responsive images car">
Sizes
<img srcset="responsive-images-car-160.jpg 160w,
responsive-images-car-320.jpg 320w,
responsive-images-car-640.jpg 640w,
responsive-images-car-1280.jpg 1280w"
sizes="(max-width: 480px) 100vw,
(max-width: 900px) 33vw,
254px"
src="responsive-images-car.jpg" alt="responsive images car">
for more information you can
click here
I need the solution for app side. (Android and IOS).
– khushboo
Mar 26 at 6:00
add a comment |
you can use srcset and sizes Attributes for load in mobile because its allow us to serve different scaled images based on the size of the display.
SRCSET
example
<img srcset="responsive-images-car-160.jpg 160w,
responsive-images-car-320.jpg 320w,
responsive-images-car-640.jpg 640w,
responsive-images-car-1280.jpg 1280w"
src="reponsive-images-car.jpg" alt="responsive images car">
Sizes
<img srcset="responsive-images-car-160.jpg 160w,
responsive-images-car-320.jpg 320w,
responsive-images-car-640.jpg 640w,
responsive-images-car-1280.jpg 1280w"
sizes="(max-width: 480px) 100vw,
(max-width: 900px) 33vw,
254px"
src="responsive-images-car.jpg" alt="responsive images car">
for more information you can
click here
I need the solution for app side. (Android and IOS).
– khushboo
Mar 26 at 6:00
add a comment |
you can use srcset and sizes Attributes for load in mobile because its allow us to serve different scaled images based on the size of the display.
SRCSET
example
<img srcset="responsive-images-car-160.jpg 160w,
responsive-images-car-320.jpg 320w,
responsive-images-car-640.jpg 640w,
responsive-images-car-1280.jpg 1280w"
src="reponsive-images-car.jpg" alt="responsive images car">
Sizes
<img srcset="responsive-images-car-160.jpg 160w,
responsive-images-car-320.jpg 320w,
responsive-images-car-640.jpg 640w,
responsive-images-car-1280.jpg 1280w"
sizes="(max-width: 480px) 100vw,
(max-width: 900px) 33vw,
254px"
src="responsive-images-car.jpg" alt="responsive images car">
for more information you can
click here
you can use srcset and sizes Attributes for load in mobile because its allow us to serve different scaled images based on the size of the display.
SRCSET
example
<img srcset="responsive-images-car-160.jpg 160w,
responsive-images-car-320.jpg 320w,
responsive-images-car-640.jpg 640w,
responsive-images-car-1280.jpg 1280w"
src="reponsive-images-car.jpg" alt="responsive images car">
Sizes
<img srcset="responsive-images-car-160.jpg 160w,
responsive-images-car-320.jpg 320w,
responsive-images-car-640.jpg 640w,
responsive-images-car-1280.jpg 1280w"
sizes="(max-width: 480px) 100vw,
(max-width: 900px) 33vw,
254px"
src="responsive-images-car.jpg" alt="responsive images car">
for more information you can
click here
answered Mar 26 at 5:58
Vikas SrivastavaVikas Srivastava
13 bronze badges
13 bronze badges
I need the solution for app side. (Android and IOS).
– khushboo
Mar 26 at 6:00
add a comment |
I need the solution for app side. (Android and IOS).
– khushboo
Mar 26 at 6:00
I need the solution for app side. (Android and IOS).
– khushboo
Mar 26 at 6:00
I need the solution for app side. (Android and IOS).
– khushboo
Mar 26 at 6:00
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55350311%2ffacing-image-loading-issue-from-aws-s3%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown