Gravit Designer discussion

In JPG export preview - show varying file size along with image quality slider

When exporting as JPG, it’s great to see an image quality slider, and a real time preview of the quality of the image being exported.
For web graphics It would be extremely useful to also see the varying resultant file size of the image alongside its preview (before committing to the export).
Is this possible?
Many thanks !

Sur une proposition écrite dans la suite de message indélébile de gravite designer, un autre logiciel qui sort du SVG correctement avec plein de pictogrammes en ligne dans un navigateur web, afficher au préalable la taille des fichiers exportés en Jpeg par exemple avant de valider dans le dialogue d’enregistrement comme vous le voyez cette fonction s’affiche dans le panneau de contrôle. A+plus. immédiatement écrit conçu et réalisé, a nouveau.

Immédiatement réalisé danss le Blgg Denis.jpg
Sur le web de gravit designer :

When exporting as JPG, it’s great to see an image quality slider, and a real time preview of the quality of the image being exported.
For web graphics It would be extremely useful to also see the varying resultant file size of the image alongside its preview (before committing to the export).
Is this possible?
Many thanks !

procedure Prevoir_la_taille_du_fichier_jpeg;
var apc_file_temp:pc1024;
adc:hdc;
ficelle:string;
afont:hfont;
crect:trect;
un_Calque_actif:col_plan.TCalque; //unit_menu.Prevoir_la_taille_du_fichier_jpeg;
une_forme_bitmap:wformebm.Tforme_TBitMap;
oldcursor:hcursor;
jpeg_image:jpeg.TJPEGImage;
begin
if wmain.MainWindow=nil then exit; //Condition préalable !
un_Calque_actif:=wmain.MainWindow.wmsg.col_dessin.Get_calque_actif;
if un_Calque_actif<>nil then
begin
if un_Calque_actif.col_select.Count=1 then
begin
une_forme_bitmap:=wformebm.Tforme_TBitMap(un_Calque_actif.last_selection);
if (une_forme_bitmap<>nil) and (une_forme_bitmap.ClassType=wformebm.Tforme_TBitMap) then
begin {Utilsation de la sauvegarde jpeg si et seulement si une bitmap est sélectionnée}
oldcursor:=setcursor(haide.G_Cursor.wait_cursor);
jpeg_image:=jpeg.TJPEGImage.create;
try
jpeg_image.Assign(une_forme_bitmap.BitMap);
wutil.get_start_directory(apc_file_temp);
wutil.Verif_et_creer_repertoire(pchar(strpas(apc_file_temp)+‘temp’));
strcat(apc_file_temp,‘temp\temp_jpg.jpg’);
jpeg_image.SaveToFile(apc_file_temp);
jpeg_image.Free;
if wutil.file_size(apc_file_temp)<=4096 then
ficelle:=‘Taille du fichier Jpeg = ‘+
k_dll.Convertir_ce_numerique_en_string_separer_par_des_points(
wutil.file_size(apc_file_temp))+’ Octets’
else
ficelle:=‘Taille du fichier Jpeg = ‘+
k_dll.Convertir_ce_numerique_en_string_separer_par_des_points(
wutil.file_size(apc_file_temp) div 1024)+’ Kio’;
wmain.Status_window.Show_a_message(pchar(ficelle),8000);
if wmain.Wincontrole<>nil then
begin
adc:=getdc(wmain.Wincontrole.hwindow);
getclientrect(wmain.Wincontrole.hwindow,crect);
wutil.dessin_cyan(adc,crect);
setbkmode(adc,TRANSPARENT);
afont:=selectobject(adc,wutil.Get_MakeDefaultCalibri(44));
settextcolor(adc,g_base.RGB_blanc);
textout(adc,4,4,pchar(ficelle),strlen(pchar(ficelle)));
settextcolor(adc,g_base.RGB_Bleu_fonce);
textout(adc,5,5,pchar(ficelle),strlen(pchar(ficelle)));
deleteobject(selectobject(adc,afont));
releasedc(wmain.Wincontrole.hwindow,adc);
end;
except end;
setcursor(oldcursor);
end;
end;
end;
end; {Prevoir_la_taille_du_fichier_jpeg ? Quelque soit l’extension désirée ?}

Ok - thanks Scofano.
Question: I have just downloaded the latest vesrion of Gravit and now I can’t even see the JPG quality slider when exporting!
Has this feature now been moved to the PRO version only!!?
Thx
Al

Hey @scl,

I’ve erased my previous comment as it was “wrong”.

It is already working on the latest version but yes, the advanced export is a PRO feature.

JPEG quality changes compression settings. It does no change the size of the image.

You are not correct surely! Lowering image quality on export reduces resultant file size.

SCL,

The file size will decrease, but the image size, as viewed on a screen or web page, will remain constant.

Well yes, of course. It’s why I started this thread by using the term ‘file size’, and not ‘image dimensions’.

This topic was automatically closed after 180 days. New replies are no longer allowed.