Image optimization and compression are not isolated skills; rather, they are part of a larger content management strategy that must be applied in a consistent and coherent manner. Before you begin optimizing and compressing your images, you should define your goals and requirements, such as what kind of images you need, what format and quality you want, what resolution and layout you use, what audience and devices you target, and what performance and SEO metrics you aim for. These goals and requirements can help guide your decisions and actions. Once you have determined these parameters, you should optimize and compress your images before uploading them to your website. This will save time and resources as there's no need to optimize and compress them again after uploading. There are various tools available for doing this, such as online services, plugins, software, libraries, and frameworks. In some cases, however, it may be necessary to optimize and compress your images after uploading them to your website due to changes in goals/requirements or website design/layout. In this case, plugins, software, libraries, or frameworks that work on the server or on the fly can be used.