Website Redesign: The Necessity and Challenges of Image Size Handling
When redesigning an old website, handling image sizes is an essential step. With the diversity of screen sizes (from mobile phones to 4K monitors), original fixed-size images often fail to adapt to new layouts, potentially causing distortion, blurriness, or slow loading. Managing image sizes not only affects visual appeal but also directly impacts page loading speed and SEO performance. Therefore, before the redesign, it is crucial to plan an image size strategy to ensure clear and fast display across different devices.
1. Image Size Adaptation Principles: Responsiveness and Resolution
Modern websites often adopt responsive design, where images need to automatically scale based on screen width. We recommend the following adaptation approaches during the redesign:
- Use CSS max-width: 100%: Ensure the image container is responsive, but note that the original image resolution should not be too low, or it will become blurry when enlarged.
- Multiple Image Versions (srcset): Prepare different sizes of the same image (e.g., 640px, 1280px, 1920px wide) so the browser can load the appropriate version based on the device, balancing clarity and bandwidth.
- Resolution Considerations: For Retina displays, the actual pixel size of the image should be twice the display size (e.g., if the display width is 200px, the original image should be 400px) to achieve sharp results.

2. Image Format and Compression: Balancing Quality and File Size
During the redesign, take the opportunity to uniformly optimize image formats:
- JPEG: Suitable for photos and gradient content, with moderate compression rates.
- PNG: Ideal for icons, text screenshots, and other scenarios requiring transparent backgrounds.
- WebP: A modern format that offers smaller file sizes at the same quality level, with good browser compatibility (supported by all major browsers); recommended for use.
- SVG: Use SVG for vector graphics like icons and logos, as they scale infinitely and have small file sizes.
Recommended compression tools: TinyPNG, ImageOptim, Squoosh, etc. Batch processing can save significant time. Be careful to maintain visual quality during compression; over-compression can lead to distortion.
3. Methods for Batch Processing Image Sizes
Old websites often contain hundreds or thousands of images, making manual adjustments impractical. Consider the following batch solutions:

- Use Photoshop Actions or Batch Processing: Record an action for 'Resize Image + Save for Web' and apply it to a folder for batch execution.
- Online Tools: Services like Bulk Resize Photos or PicResize allow you to upload a folder and uniformly resize images.
- Plugins or Scripts: For CMS websites (e.g., WordPress), install plugins like Smush or ShortPixel to automatically optimize uploaded images. Alternatively, write scripts (e.g., using ImageMagick commands) for batch processing.
4. Image Naming and ALT Tags: Don't Forget SEO Details
After resizing images during the redesign, it is advisable to also optimize image file names and ALT attributes:
- Naming: Use descriptive English or pinyin, with words separated by hyphens, e.g., 'web-design-process.jpg'.
- ALT Tags: Provide a concise description of the image content to help search engines understand it, while also improving accessibility.
5. Testing and Compatibility Checks
After replacing images, be sure to conduct visual tests on multiple devices (phones, tablets, laptops, large monitors) and browsers:

- Check for distortion, stretching, or misalignment.
- Use developer tools to simulate different resolutions and confirm responsive behavior.
- Inspect the network panel to ensure image loading speed is within an acceptable range (recommend single image size under 200KB, with priority optimization for homepage and key pages).
Summary and Recommendations
When redesigning an old website, follow the principle of 'plan first, execute later' for image size handling: first determine responsive breakpoints and resolution requirements, then unify formats and compression, and finally batch process and test. If the number of images is large, prioritize the homepage and core conversion pages, and gradually optimize others. Properly handling image sizes can effectively enhance user experience and website performance, laying a solid foundation for future operations.


