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;








3















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.










share|improve this question






























    3















    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.










    share|improve this question


























      3












      3








      3








      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.










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      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






















          4 Answers
          4






          active

          oldest

          votes


















          3














          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.






          share|improve this answer






























            1














            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






            share|improve this answer






























              0














              You should be able to use lazyload on the client side to address the slow loading issue.






              share|improve this answer























              • Is this used on IOS and android also ?

                – khushboo
                Mar 26 at 5:56


















              0














              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






              share|improve this answer























              • I need the solution for app side. (Android and IOS).

                – khushboo
                Mar 26 at 6:00













              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
              );



              );













              draft saved

              draft discarded


















              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









              3














              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.






              share|improve this answer



























                3














                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.






                share|improve this answer

























                  3












                  3








                  3







                  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.






                  share|improve this answer













                  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.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 26 at 5:45









                  Yash BindlishYash Bindlish

                  3951 silver badge7 bronze badges




                  3951 silver badge7 bronze badges























                      1














                      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






                      share|improve this answer



























                        1














                        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






                        share|improve this answer

























                          1












                          1








                          1







                          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






                          share|improve this answer













                          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







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Mar 26 at 9:07









                          Aress SupportAress Support

                          8071 silver badge11 bronze badges




                          8071 silver badge11 bronze badges





















                              0














                              You should be able to use lazyload on the client side to address the slow loading issue.






                              share|improve this answer























                              • Is this used on IOS and android also ?

                                – khushboo
                                Mar 26 at 5:56















                              0














                              You should be able to use lazyload on the client side to address the slow loading issue.






                              share|improve this answer























                              • Is this used on IOS and android also ?

                                – khushboo
                                Mar 26 at 5:56













                              0












                              0








                              0







                              You should be able to use lazyload on the client side to address the slow loading issue.






                              share|improve this answer













                              You should be able to use lazyload on the client side to address the slow loading issue.







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              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

















                              • 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











                              0














                              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






                              share|improve this answer























                              • I need the solution for app side. (Android and IOS).

                                – khushboo
                                Mar 26 at 6:00















                              0














                              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






                              share|improve this answer























                              • I need the solution for app side. (Android and IOS).

                                – khushboo
                                Mar 26 at 6:00













                              0












                              0








                              0







                              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






                              share|improve this answer













                              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







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              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

















                              • 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

















                              draft saved

                              draft discarded
















































                              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.




                              draft saved


                              draft discarded














                              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





















































                              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







                              Popular posts from this blog

                              SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                              용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

                              155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해