Friday, 28. December 2007, 10:57:24
When you want to add a file to a blog post (out of your albums) the editor asks you to either give the remote URL of the image or upload it on MyOpera and it goes in the "blog" directory. You can select left, center or right alignment.
Problem:
When you select "center" or you don't select any alignment, the image probably stays its original size, with the limit of 100% of the post area. When left or right are selected the image is displayed RESIZED to accomodate it at 48% of the blog post area, regardless what the image actual size is. See the CSS:
.imgleft img {
clear:left;
float:left;
margin:4px 15px 8px 0pt;
max-width:48%;
}In the previous post the image I uploaded is 320x240px and it is actually displayed in 288x216px (excluding the 1px border and the 4px padding I've added to every image).
This solution allows the editor to handle any kind of picture you may upload but has got 2 major drawbacks:
1. The image is ALWAYS displayed resized, besides the improbable event that 48% of the post area is exaclty the original image size.
2. Your readers download the image in the original size even if it is displayed much smaller. That is waste of space on your file hosting area and waste of bandwith for your readers. That is expecially heavy for vertical images.
My advice is to resize the images you want to align left or right at least to 320px of width before you upload to MyOpera. Pictures that go in your albums are already displayed with a thubnail, so that is done automatically by the editor.
---------------------------------------------
Quando volete aggiungere una immagine ad un post su MyOpera (a parte il caso in cui la aggiungiate ad un photoalbum) l'editor vi chiede la URL oppure vi fa fare upload del file dentro la directory Blog. A questo punto potete selezionare l'allineamento sinistro, centrato o destro.
Problema:
Se selezionate centrato o non selezionate l'allineamento, l'immagine rimane della dimensione originaria fino al limite del 100% della dimensione dell'area del post. Se selezionate invece sinistro o destro l'immagine viene ridimensionata via CSS (vedi sopra) in modo che appaia al massimo il 48% della dimensione dell'area del post.
Questo ha due inconvenienti fondamentali:
1. L'immagine viene SEMPRE ridimensionata.
2. Il lettore del vostro blog dovrà scaricare l'immagine nella dimensione originaria anche se poi la vede effettivamente più piccola. Questo implica spreco di spazio sul vostro spazio di hosting di MyOpera e spreco di banda per i vostri lettori.
Il mio consiglio è di ridimensionare tutte le immagini che volete allineare almeno a 320px, tranne quelle che inserite nei photoalbum perché in quel caso l'editor crea dei thumbnail automaticamente.