Merhaba,
jpg dosyasını 0 1 olarak kaydetmek ve sıkıştırıp başka yere gönderip orada tekrar eski haline döndürmek , python opencv kurdum ancak pek birşey bulamadım bunu nasıl yapabilirim ?
Bende farklı bir şekilde sorayım. Normal bir metni komut satırından nasıl çevirebiliriz?
Öncelikle yapman gereken hangi derleyiciyi kullanırsan kullan jpg dosya için dosya değişkenini oluşturman gerekiyor. Jpeg dosyaların standartların datanın hangi bayttan itibaren başladığı bellidir. Sen dosya header larını değilde sadece datayı misal stream olarak alacaksın. Diğer yöntem ise dosya tipini binary yada tipsiz dosya olarak belirleyip datanın kaçıncı byte dan başlayıp bitiyorsa buffer değişkenlerine okuyup kendi text dosyanıza yazdıracaksınız. Kullandığınız dil/derleyici ile ilgili bilgim olmadığı için bu kadar söyleyebilirim. En azından biraz fikir vermiş olur. Aşağıda bu bilgiyi sağlayan bir resim paylaştım :
(https://forum.ubuntu-tr.net/proxy.php?request=http%3A%2F%2Fdev.exiv2.org%2Fattachments%2F518%2Ffig2d.jpg&hash=8c83a3b7c02898b88d1b053861d1f98042d25861)
Daha detaylı açıklamaları ise buradan bulabilirsin : http://dev.exiv2.org/projects/exiv2/wiki/The_Metadata_in_JPEG_files (http://dev.exiv2.org/projects/exiv2/wiki/The_Metadata_in_JPEG_files)
Bunun için bişey yapmana gerek yok. Bütün dosyalar zaten binary dir.
@Amenofis onu bende biliyorum işlemci seviyesinde her şey 01010 sadece burada ihtiyacım olan kısmı alıp daha fazla sıkıştırarak yollamak istiyorum.
@gnukarabatak stream yapısı ile çok çalışmadım o da olsa bile giden datayı sıkıştırıp yollayıp açıp stream etmek daha iyi olur onda da nasıl olacak bir fikrim yok açıkçası, ikinci yol bana daha kolay geldi hem sıkıştırmam lazım hem de öbür tarafta eski hale dönmesi lazım orada nasıl olacak bulamadım bir türlü, opencv indirdim ama henüz biryöntem bulamadım çok kullandığım bir kütüphane değil o da.
Şunu düzeltmemiz gerekiyor sanırım; jpeg dosyasının verisi zaten sıkışmış veridir. Yukardaki şemaya dikkat edersen "compressed data" olan kısım senin resim datandı. Sıkışıtırılmış olanı tekrar sıkıştırmana gerek varmı bilmiyorum. Jpeg header ından dosya verisinin başladığı ve bittiği adresi tespit et ve oku. Bu işi de c yada pascal ile yaparsan epey bir kaynağa da ulaşırsın.
O kısımda da bazı soru işaretleri çıkıyor mademki bu sıkıştırılmış data dün bir yöntem denedim jpg dosyasını tekrar jpg çevirdim online siteden boyutu düştü bu farkları yaratan ne oluyoracaba o yüzden bu yollara başvurmak istedim.
Aradığın format svg olabilir mi? Tam olarak istediğin gibi ikili kod olmasa da, metin olarak yönetilebilmesi işine yarayabilir belki.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="96"
height="96"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="calendar.svg">
<defs
id="defs4">
<linearGradient
inkscape:collect="always"
id="linearGradient5727">
<stop
style="stop-color:#1a1a1a;stop-opacity:1"
offset="0"
id="stop5729" />
<stop
style="stop-color:#000000;stop-opacity:0.852"
offset="1"
id="stop5731" />
</linearGradient>
<linearGradient
id="linearGradient3140"
inkscape:collect="always">
<stop
id="stop3142"
offset="0"
style="stop-color:#f0fff0;stop-opacity:1" />
<stop
id="stop3144"
offset="1"
style="stop-color:#fffcff;stop-opacity:1" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient3099">
<stop
style="stop-color:#ddebf7;stop-opacity:1"
offset="0"
id="stop3101" />
<stop
style="stop-color:#f5fdff;stop-opacity:1"
offset="1"
id="stop3103" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient3125">
<stop
style="stop-color:#185479;stop-opacity:1"
offset="0"
id="stop3127" />
<stop
style="stop-color:#004a9e;stop-opacity:1"
offset="1"
id="stop3129" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient3096">
<stop
style="stop-color:#e7f6fd;stop-opacity:1"
offset="0"
id="stop3098" />
<stop
style="stop-color:#f9fbfa;stop-opacity:1"
offset="1"
id="stop3100" />
</linearGradient>
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="0 : 48 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="96 : 48 : 1"
inkscape:persp3d-origin="48 : 32 : 1"
id="perspective3054" />
<linearGradient
id="linearGradient4357"
inkscape:collect="always">
<stop
id="stop4359"
offset="0"
style="stop-color:#ded3d6;stop-opacity:1" />
<stop
id="stop4361"
offset="1"
style="stop-color:#f7ebef;stop-opacity:1" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient3558">
<stop
style="stop-color:#ded3d6;stop-opacity:1"
offset="0"
id="stop3560" />
<stop
style="stop-color:#efebef;stop-opacity:1"
offset="1"
id="stop3562" />
</linearGradient>
<linearGradient
id="linearGradient3076"
inkscape:collect="always">
<stop
id="stop3078"
offset="0"
style="stop-color:#ffe7f7;stop-opacity:1" />
<stop
id="stop3080"
offset="1"
style="stop-color:#ffc3ef;stop-opacity:1" />
</linearGradient>
<linearGradient
id="linearGradient3070"
inkscape:collect="always">
<stop
id="stop3072"
offset="0"
style="stop-color:#943410;stop-opacity:1" />
<stop
id="stop3074"
offset="1"
style="stop-color:#dc7952;stop-opacity:1" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient3059">
<stop
style="stop-color:#a53810;stop-opacity:1"
offset="0"
id="stop3061" />
<stop
style="stop-color:#e75911;stop-opacity:1"
offset="1"
id="stop3064" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient3048">
<stop
style="stop-color:#c16d16;stop-opacity:1"
offset="0"
id="stop3050" />
<stop
style="stop-color:#ff8e31;stop-opacity:1"
offset="1"
id="stop3052" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient3119">
<stop
style="stop-color:#92948f;stop-opacity:0"
offset="0"
id="stop3121" />
<stop
id="stop3123"
offset="0.4283945"
style="stop-color:#9b9e98;stop-opacity:1" />
<stop
style="stop-color:#939690;stop-opacity:0"
offset="1"
id="stop3125" />
</linearGradient>
<linearGradient
id="linearGradient3073"
inkscape:collect="always">
<stop
id="stop3075"
offset="0"
style="stop-color:#ffffff;stop-opacity:0" />
<stop
style="stop-color:#ffffff;stop-opacity:1"
offset="0.45872402"
id="stop3085" />
<stop
id="stop3083"
offset="1"
style="stop-color:#ffffff;stop-opacity:0" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient3047">
<stop
style="stop-color:#000000;stop-opacity:1"
offset="0"
id="stop3049" />
<stop
id="stop3055"
offset="0.06123874"
style="stop-color:#1a1a1a;stop-opacity:1" />
<stop
style="stop-color:#333333;stop-opacity:1"
offset="0.16480456"
id="stop3057" />
<stop
id="stop3059"
offset="0.55385184"
style="stop-color:#4d4d4d;stop-opacity:1" />
<stop
style="stop-color:#999999;stop-opacity:1"
offset="1"
id="stop3051" />
</linearGradient>
<linearGradient
id="linearGradient3041"
inkscape:collect="always">
<stop
id="stop3043"
offset="0"
style="stop-color:#1a1a1a;stop-opacity:1" />
<stop
id="stop3045"
offset="1"
style="stop-color:#808080;stop-opacity:1" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient3029">
<stop
style="stop-color:#333333;stop-opacity:1"
offset="0"
id="stop3031" />
<stop
style="stop-color:#e0e0dd;stop-opacity:0;"
offset="1"
id="stop3033" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3029"
id="linearGradient3035"
x1="35.355339"
y1="1030.3622"
x2="35.355339"
y2="975.33282"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.1638085,0,0,1.1638085,-7.862809,-164.23642)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3041"
id="linearGradient3039"
gradientUnits="userSpaceOnUse"
x1="35.355339"
y1="1030.3622"
x2="35.355339"
y2="975.33282"
gradientTransform="matrix(1.1218695,0,0,1.1218695,-5.8497348,-122.18782)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3047"
id="linearGradient3053"
x1="40"
y1="1043.4336"
x2="39.285713"
y2="972.33325"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3073"
id="linearGradient3113"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(0,-956.36218)"
x1="14.869445"
y1="978.90387"
x2="24.52651"
y2="969.24683" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3073"
id="linearGradient3115"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-1,0,0,1,96,-956.36218)"
x1="15.152279"
y1="978.62103"
x2="26.263966"
y2="967.50934" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3119"
id="linearGradient3117"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(0,-956.36218)"
x1="13.131983"
y1="980.64136"
x2="25.549681"
y2="967.86646" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3119"
id="linearGradient3129"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-1,0,0,1,96,0)"
x1="13.131983"
y1="980.64136"
x2="25.549681"
y2="967.86646" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3048"
id="linearGradient3054"
x1="49.267925"
y1="996.57349"
x2="49.267925"
y2="1045.8627"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3048"
id="linearGradient3058"
x1="115.80308"
y1="985.47241"
x2="115.80308"
y2="1033.5543"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3076"
id="linearGradient3055"
gradientUnits="userSpaceOnUse"
x1="115.80308"
y1="985.47241"
x2="115.80308"
y2="1025.3639"
gradientTransform="matrix(1.4144782,0,0,1.4144782,-119.78686,-419.05496)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3059"
id="linearGradient3066"
x1="22.54203"
y1="1043.3966"
x2="22.54203"
y2="964.45898"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3070"
id="linearGradient3068"
x1="53.796227"
y1="1046.0226"
x2="53.796227"
y2="962.97437"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3076"
id="linearGradient3086"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.4144782,0,0,1.4144782,-119.78686,-417.12598)"
x1="115.80308"
y1="985.47241"
x2="115.80308"
y2="1025.3639" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3076"
id="linearGradient3091"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.4144782,0,0,1.4144782,-119.78686,-418.126)"
x1="115.80308"
y1="985.47241"
x2="115.80308"
y2="1025.3639" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3076"
id="linearGradient3093"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.4144782,0,0,1.4144782,-119.78686,-1375.4171)"
x1="115.80308"
y1="985.47241"
x2="115.80308"
y2="1025.3639" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3558"
id="linearGradient3564"
x1="93.242035"
y1="1027.2615"
x2="93.242035"
y2="980.7262"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3558"
id="linearGradient4350"
gradientUnits="userSpaceOnUse"
x1="93.242035"
y1="1027.2615"
x2="93.242035"
y2="980.7262" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4357"
id="linearGradient4354"
gradientUnits="userSpaceOnUse"
x1="93.242035"
y1="1027.2615"
x2="93.242035"
y2="980.7262"
gradientTransform="translate(-56.571856,0)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3096"
id="linearGradient3067"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(108.39483,0)"
x1="93.242035"
y1="1027.2615"
x2="93.242035"
y2="980.7262" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3125"
id="linearGradient3131"
x1="38.037735"
y1="45.645283"
x2="58.556892"
y2="45.645283"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.2537728,0,0,1.2537728,-112.62901,962.79467)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3099"
id="linearGradient3105"
x1="-40.985512"
y1="85.244209"
x2="-40.985512"
y2="40.074162"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.88426923,0,0,0.88426923,102.0592,958.02191)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3099"
id="linearGradient3114"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.88426923,0,0,0.88426923,102.0592,958.02191)"
x1="-40.985512"
y1="85.244209"
x2="-40.985512"
y2="40.074162" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3099"
id="linearGradient3120"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.88426923,0,0,0.88426923,94.174798,947.84787)"
x1="-40.985512"
y1="85.244209"
x2="-40.985512"
y2="40.074162" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3099"
id="linearGradient3972"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.88426923,0,0,0.88426923,94.174798,947.84787)"
x1="-40.985512"
y1="85.244209"
x2="-40.985512"
y2="40.074162" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3099"
id="linearGradient3978"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.88426923,0,0,0.88426923,93.01482,948.95598)"
x1="-40.985512"
y1="85.244209"
x2="-40.985512"
y2="40.074162" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3099"
id="linearGradient3998"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.88426923,0,0,0.88426923,93.01482,948.95598)"
x1="-40.985512"
y1="85.244209"
x2="-40.985512"
y2="40.074162" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3099"
id="linearGradient4004"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.88426923,0,0,0.88426923,93.01482,948.45787)"
x1="-40.985512"
y1="85.244209"
x2="-40.985512"
y2="40.074162" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3601"
id="linearGradient3257"
gradientUnits="userSpaceOnUse"
x1="72"
y1="1006.8622"
x2="72"
y2="1000.0592"
gradientTransform="translate(-93.28302,1.2987011)" />
<linearGradient
inkscape:collect="always"
id="linearGradient3601">
<stop
style="stop-color:#e9e4e1;stop-opacity:1"
offset="0"
id="stop3603" />
<stop
style="stop-color:#f9f9f4;stop-opacity:1"
offset="1"
id="stop3605" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3637"
id="linearGradient3260"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.42682928,0,0,0.42682928,-75.895821,576.09463)"
x1="22.54203"
y1="1043.3966"
x2="22.54203"
y2="964.45898" />
<linearGradient
inkscape:collect="always"
id="linearGradient3637">
<stop
style="stop-color:#e7e2df;stop-opacity:1"
offset="0"
id="stop3639" />
<stop
id="stop3641"
offset="0.56505984"
style="stop-color:#f6f5f1;stop-opacity:1;" />
<stop
style="stop-color:#fbfcf7;stop-opacity:1"
offset="1"
id="stop3643" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3567"
id="linearGradient3263"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.06208426,0,0,0.06431674,-76.717609,933.07543)"
x1="22.54203"
y1="1043.3966"
x2="22.54203"
y2="964.45898" />
<linearGradient
id="linearGradient3567"
inkscape:collect="always">
<stop
id="stop3569"
offset="0"
style="stop-color:#99ff93;stop-opacity:1" />
<stop
id="stop3571"
offset="1"
style="stop-color:#b1ffac;stop-opacity:1" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3228"
id="linearGradient3277"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(-93.283012,1.1735612)"
x1="22.54203"
y1="1043.3966"
x2="22.54203"
y2="964.45898" />
<linearGradient
inkscape:collect="always"
id="linearGradient3228">
<stop
style="stop-color:#23df28;stop-opacity:1"
offset="0"
id="stop3230" />
<stop
style="stop-color:#77fb69;stop-opacity:1"
offset="1"
id="stop3232" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3235"
id="linearGradient3275"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(-93.283012,1.1735812)"
x1="53.796227"
y1="1046.0226"
x2="53.796227"
y2="962.97437" />
<linearGradient
id="linearGradient3235"
inkscape:collect="always">
<stop
id="stop3237"
offset="0"
style="stop-color:#20cd26;stop-opacity:1" />
<stop
id="stop3239"
offset="1"
style="stop-color:#83fd77;stop-opacity:1" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3099"
id="linearGradient4306"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.88426923,0,0,0.88426923,93.01482,948.45787)"
x1="-40.985512"
y1="85.244209"
x2="-40.985512"
y2="40.074162" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3099"
id="linearGradient4313"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.88426923,0,0,0.88426923,93.01482,948.45787)"
x1="-40.985512"
y1="85.244209"
x2="-40.985512"
y2="40.074162" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3099"
id="linearGradient3130"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.88426923,0,0,0.88426923,93.01482,948.45787)"
x1="-40.985512"
y1="85.244209"
x2="-40.985512"
y2="40.074162" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3140"
id="linearGradient3133"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-0.95978016,0,0,0.95978016,-0.85879033,943.39863)"
x1="-40.985512"
y1="85.244209"
x2="-40.985512"
y2="40.074162" />
<radialGradient
cx="9.0255814"
cy="8.7544794"
r="12.671875"
fx="8.4953508"
fy="8.7544794"
id="radialGradient3037"
xlink:href="#linearGradient4184"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-2.8884144,6.4031603,-24.04247,-10.845366,174.62119,971.97755)" />
<linearGradient
id="linearGradient4184">
<stop
offset="0"
style="stop-color:#fcc368;stop-opacity:1"
id="stop4186" />
<stop
offset="0.26238"
style="stop-color:#f29040;stop-opacity:1"
id="stop4188" />
<stop
offset="0.704952"
style="stop-color:#e23a0e;stop-opacity:1"
id="stop4190" />
<stop
offset="1"
style="stop-color:#ac441f;stop-opacity:1"
id="stop4192" />
</linearGradient>
<linearGradient
x1="167.98311"
y1="8.50811"
x2="167.98311"
y2="54.780239"
id="linearGradient3027-4"
xlink:href="#linearGradient5803-0"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.8374621,0,0,1.4737572,-320.8741,994.22339)" />
<linearGradient
id="linearGradient5803-0">
<stop
id="stop5805-3"
style="stop-color:#e5e5e5;stop-opacity:1"
offset="0" />
<stop
id="stop5807-1"
style="stop-color:#fef8dd;stop-opacity:1"
offset="1" />
</linearGradient>
<linearGradient
gradientTransform="translate(-143.05932,955.96542)"
x1="36.357143"
y1="6"
x2="36.357143"
y2="63.893143"
id="linearGradient3188"
xlink:href="#linearGradient3737"
gradientUnits="userSpaceOnUse" />
<linearGradient
id="linearGradient3737">
<stop
id="stop3739"
style="stop-color:#ffffff;stop-opacity:1"
offset="0" />
<stop
id="stop3741"
style="stop-color:#ffffff;stop-opacity:0"
offset="1" />
</linearGradient>
<radialGradient
cx="48"
cy="90.171875"
r="42"
fx="48"
fy="90.171875"
id="radialGradient3619"
xlink:href="#linearGradient3737"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.1573129,0,0,0.99590774,-150.61034,956.16255)" />
<linearGradient
gradientTransform="translate(-81.792319,946.25976)"
x1="26.476902"
y1="52.541676"
x2="20.832451"
y2="22.274824"
id="linearGradient4050"
xlink:href="#linearGradient4044"
gradientUnits="userSpaceOnUse" />
<linearGradient
id="linearGradient4044">
<stop
id="stop4046"
style="stop-color:#aa0003;stop-opacity:1"
offset="0" />
<stop
id="stop4048"
style="stop-color:#d80003;stop-opacity:0.055"
offset="1" />
</linearGradient>
<linearGradient
gradientTransform="translate(-143.05932,955.96542)"
x1="67.063141"
y1="54.726093"
x2="39.036816"
y2="66.370422"
id="linearGradient4042"
xlink:href="#linearGradient4036"
gradientUnits="userSpaceOnUse" />
<linearGradient
id="linearGradient4036">
<stop
id="stop4038"
style="stop-color:#37893d;stop-opacity:1"
offset="0" />
<stop
id="stop4040"
style="stop-color:#37893d;stop-opacity:0"
offset="1" />
</linearGradient>
<linearGradient
gradientTransform="translate(-143.05932,955.96542)"
x1="49.922932"
y1="26.065477"
x2="55.387222"
y2="42.517231"
id="linearGradient4034"
xlink:href="#linearGradient4028"
gradientUnits="userSpaceOnUse" />
<linearGradient
id="linearGradient4028">
<stop
id="stop4030"
style="stop-color:#b2831d;stop-opacity:1"
offset="0" />
<stop
id="stop4032"
style="stop-color:#b2831d;stop-opacity:0"
offset="1" />
</linearGradient>
<linearGradient
x1="26"
y1="48"
x2="70"
y2="48"
id="linearGradient3927"
xlink:href="#linearGradient3921"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0,1,-1,0,95.081137,960.41385)" />
<linearGradient
id="linearGradient3921">
<stop
id="stop3923"
style="stop-color:#000000;stop-opacity:1"
offset="0" />
<stop
id="stop3925"
style="stop-color:#000000;stop-opacity:0"
offset="1" />
</linearGradient>
<radialGradient
cx="30.791513"
cy="55.203083"
r="30.40625"
fx="30.791513"
fy="55.203083"
id="radialGradient3902"
xlink:href="#linearGradient3896"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0,1.4800054,-1.5858435,0,126.98987,962.47658)" />
<linearGradient
id="linearGradient3896">
<stop
id="stop3898"
style="stop-color:#4adb3d;stop-opacity:1"
offset="0" />
<stop
id="stop3974"
style="stop-color:#1e8f19;stop-opacity:1"
offset="0.57428855" />
<stop
id="stop3972"
style="stop-color:#057700;stop-opacity:1"
offset="0.75" />
<stop
id="stop3900"
style="stop-color:#00520a;stop-opacity:1"
offset="1" />
</linearGradient>
<radialGradient
cx="80.272285"
cy="57.492752"
r="21"
fx="80.272285"
fy="57.492752"
id="radialGradient3910"
xlink:href="#linearGradient3904"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0,2.4180206,-2.4520544,0,197.32209,804.15906)" />
<linearGradient
id="linearGradient3904">
<stop
id="stop3906"
style="stop-color:#e4c948;stop-opacity:1"
offset="0" />
<stop
id="stop3976"
style="stop-color:#be9a07;stop-opacity:1"
offset="0.60882944" />
<stop
id="stop3970"
style="stop-color:#a67e00;stop-opacity:1"
offset="0.79731107" />
<stop
id="stop3908"
style="stop-color:#815700;stop-opacity:1"
offset="1" />
</linearGradient>
<radialGradient
cx="37.312634"
cy="14.224895"
r="42"
fx="37.312634"
fy="14.224895"
id="radialGradient3883"
xlink:href="#linearGradient3877"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(2.268437,-0.08630803,0.01571721,0.41309588,-56.90554,981.5062)" />
<linearGradient
id="linearGradient3877">
<stop
id="stop3879"
style="stop-color:#f02206;stop-opacity:1"
offset="0" />
<stop
id="stop3881"
style="stop-color:#7f050f;stop-opacity:1"
offset="1" />
</linearGradient>
<linearGradient
x1="48"
y1="90"
x2="48"
y2="5.9877172"
id="linearGradient3617"
xlink:href="#linearGradient3700"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(-142.86419,955.96542)" />
<linearGradient
id="linearGradient3700">
<stop
id="stop3702"
style="stop-color:#e0e0e0;stop-opacity:1"
offset="0" />
<stop
id="stop3704"
style="stop-color:#ffffff;stop-opacity:1"
offset="1" />
</linearGradient>
<linearGradient
x1="48"
y1="90"
x2="48"
y2="5.9877172"
id="linearGradient3987"
xlink:href="#linearGradient3700"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.0909091,0,0,1.0909091,-147.42296,951.60178)" />
<linearGradient
x1="32.251034"
y1="6.1317081"
x2="32.251034"
y2="90.238609"
id="linearGradient3026"
xlink:href="#ButtonShadow-0"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.0238095,0,0,1.0119048,-1.1428571,-98.071429)" />
<linearGradient
x1="45.447727"
y1="92.539597"
x2="45.447727"
y2="7.0165396"
id="ButtonShadow-0"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.0058652,0,0,0.994169,100,0)">
<stop
id="stop3750-8"
style="stop-color:#000000;stop-opacity:1"
offset="0" />
<stop
id="stop3752-5"
style="stop-color:#000000;stop-opacity:0.58823532"
offset="1" />
</linearGradient>
<linearGradient
x1="32.251034"
y1="6.1317081"
x2="32.251034"
y2="90.238609"
id="linearGradient3721"
xlink:href="#ButtonShadow-0"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(0,-97)" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient5727"
id="radialGradient5733"
cx="48"
cy="1005.3622"
fx="48"
fy="1005.3622"
r="42.5"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.98939928,0,0,0.98980346,0.50431301,10.342987)" />
<filter
inkscape:collect="always"
style="color-interpolation-filters:sRGB"
id="filter4356"
x="-0.012"
width="1.024"
y="-0.012"
height="1.024">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="0.445"
id="feGaussianBlur4358" />
</filter>
<filter
inkscape:collect="always"
style="color-interpolation-filters:sRGB"
id="filter4360"
x="-0.012"
width="1.024"
y="-0.012"
height="1.024">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="0.44"
id="feGaussianBlur4362" />
</filter>
<filter
inkscape:collect="always"
style="color-interpolation-filters:sRGB"
id="filter4364"
x="-0.012"
width="1.024"
y="-0.012"
height="1.024">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="0.435"
id="feGaussianBlur4366" />
</filter>
<filter
inkscape:collect="always"
style="color-interpolation-filters:sRGB"
id="filter4368"
x="-0.012"
width="1.024"
y="-0.012"
height="1.024">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="0.43"
id="feGaussianBlur4370" />
</filter>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.1075604"
inkscape:cx="-40.754149"
inkscape:cy="-93.729095"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1600"
inkscape:window-height="868"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
showguides="true"
inkscape:guide-bbox="true" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-956.36218)">
<rect
style="opacity:0.034;fill:#d3d3d3;fill-opacity:1;stroke:none;filter:url(#filter4356)"
id="rect3826"
width="89"
height="89"
x="3.5"
y="960.86218"
rx="10.595235"
ry="10.595235" />
<g
id="g3041">
<rect
style="opacity:0.05;fill:#000000;fill-opacity:1;stroke:none"
id="rect3824"
width="88"
height="88"
x="4"
y="961.36218"
rx="10.476188"
ry="10.476188" />
<rect
ry="10.357141"
rx="10.357141"
y="961.86218"
x="4.5"
height="87"
width="87"
id="rect3822"
style="opacity:0.05;fill:#000000;fill-opacity:1;stroke:none" />
<rect
style="opacity:0.1;fill:#000000;fill-opacity:1;stroke:none"
id="rect3820"
width="86"
height="86"
x="5"
y="962.36218"
rx="10.238094"
ry="10.238094" />
<rect
ry="10.119047"
rx="10.119047"
y="962.86218"
x="5.5"
height="85"
width="85"
id="rect3818"
style="opacity:0.1;fill:#000000;fill-opacity:1;stroke:none" />
<rect
style="opacity:0.3;fill:#000000;fill-opacity:1;stroke:none"
id="rect3131"
width="84"
height="84"
x="6"
y="963.36218"
rx="10"
ry="10" />
</g>
<g
id="g5715">
<rect
ry="10.476188"
rx="10.476188"
y="961.36218"
x="4"
height="88"
width="88"
id="rect5717"
style="opacity:0.115;fill:#e3e3e3;fill-opacity:1;stroke:none;filter:url(#filter4360)" />
<rect
style="opacity:0.193;fill:#e8e8e8;fill-opacity:1;stroke:none;filter:url(#filter4364)"
id="rect5719"
width="87"
height="87"
x="4.5"
y="961.86218"
rx="10.357141"
ry="10.357141" />
<rect
ry="10.238094"
rx="10.238094"
y="962.36218"
x="5"
height="86"
width="86"
id="rect5721"
style="opacity:0.162;fill:#000000;fill-opacity:1;stroke:none;filter:url(#filter4368)" />
<rect
style="opacity:0.1;fill:#000000;fill-opacity:1;stroke:none"
id="rect5723"
width="85"
height="85"
x="5.5"
y="962.86218"
rx="10.119047"
ry="10.119047" />
<rect
ry="9.8980341"
rx="9.8939924"
y="963.8822"
x="6.4407082"
height="83.143486"
width="83.109535"
id="rect5725"
style="opacity:0.93800001;fill:url(#radialGradient5733);fill-opacity:1;stroke:#000000;stroke-width:0.98960131;stroke-opacity:1" />
</g>
<rect
style="fill:#394b4c;fill-opacity:1;stroke:none;opacity:0.543"
id="rect3034-0"
width="81.283493"
height="74.623772"
x="7.2532835"
y="969.92914"
rx="9.6766071"
ry="8.8837814" />
<rect
ry="8.8095236"
rx="8.8095236"
y="969.95435"
x="11.004573"
height="74"
width="74"
id="rect3657"
style="fill:#62635d;fill-opacity:1;stroke:none" />
<rect
style="fill:#8e8d89;fill-opacity:1;stroke:none"
id="rect3659"
width="74"
height="74"
x="11.004576"
y="966.64642"
rx="8.8095236"
ry="8.8095236" />
<rect
ry="7.3258657"
rx="8.8095236"
y="975.3396"
x="11.004574"
height="61.537273"
width="74"
id="rect3661"
style="fill:#b8b8b6;fill-opacity:1;stroke:none" />
<path
inkscape:connector-curvature="0"
style="fill:#f9fafd;fill-opacity:1;stroke:none"
d="m 11.125824,978.72585 0,45.18745 c 0,4.8805 3.923844,8.8125 8.794177,8.8125 l 56.257785,0 c 4.870328,0 8.794177,-3.932 8.794177,-8.8125 l 0,-45.18745 -73.846139,0 z"
id="rect3675" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:8px;line-height:100%;font-family:'Liberation Sans';-inkscape-font-specification:'Liberation Sans';text-align:start;letter-spacing:0px;word-spacing:0px;text-anchor:start;fill:#1a1a1a;fill-opacity:1;stroke:none"
x="47.535259"
y="1028.6691"
id="text3663"
sodipodi:linespacing="100%"><tspan
sodipodi:role="line"
id="tspan3665"
x="47.535259"
y="1028.6691"
style="font-weight:bold;font-size:48px;-inkscape-font-specification:'Liberation Sans Bold';text-align:center;text-anchor:middle;fill:#1a1a1a;fill-opacity:1">30</tspan></text>
<path
style="fill:#aa0000;fill-opacity:1;stroke:none"
d="m 19.817079,966.03115 c -4.88048,0 -8.8125,3.93202 -8.8125,8.8125 l 0,13.18755 74,0 0,-13.18755 c 0,-4.88048 -3.932024,-8.8125 -8.8125,-8.8125 z"
id="rect3667"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ssccsss" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17.44215775px;line-height:0%;font-family:'Liberation Sans';-inkscape-font-specification:'Liberation Sans';text-align:start;letter-spacing:-41.2507019px;word-spacing:0px;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none"
x="46.551132"
y="981.52679"
id="text4479"
sodipodi:linespacing="0%"><tspan
sodipodi:role="line"
id="tspan4481"
x="46.551132"
y="981.52679"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:16px;line-height:0%;font-family:Arial;-inkscape-font-specification:'Arial Bold';text-align:center;letter-spacing:2.81999932px;text-anchor:middle;fill:#ffffff">ŞBT</tspan></text>
</g>
</svg>
Aynı imajı png ye dönüştürürür ve tekrar svg ye çevirirsen çok daha küçük bir metin çıktısı elde edersin. ( bu durumda görüntünün vektör özelliği de kaybolmuş olur. )
@91011
Alıntı YapO kısımda da bazı soru işaretleri çıkıyor mademki bu sıkıştırılmış data dün bir yöntem denedim jpg dosyasını tekrar jpg çevirdim online siteden boyutu düştü bu farkları yaratan ne oluyoracaba o yüzden bu yollara başvurmak istedim.
Bunun sebebi o site ile senin bilgisayarında yapılan jpeg kalitesinin farklı olmasıdır. Hani resim programlarında farklı kaydet dediğinde eğer jpeg se farklı kaydedilecek dosya sana "kalitesi yüde kaç olsun?" sorusunu sorar ve genelde varsayılan %75 gelir. bu boyut farklılığının sebebi budur. Jpeg'in sıkıştırılmış dosya formatı olduğu sana verdiğim dökümanda geniş bir şekilde anlatılmış. Bu konuda şüphe yok.
İlave olarak resim verileri haricinde dosyanın içerisinde notlar (hangi yazılımla oluşturulmuş vs.) bulunabilir. O yazılım bu notları silerek de boyutunu düşürmüş olabilir.
@gnukarabatak 700 kb civarı jpeg vardı bilgisayarda resizer siteleri var orada çevirdim jpeg den jpeg olsun dedim No change dedim 230 kb çıkardı yeni resmi ve yan yana koyup baktım gözle görülür bir fark yoktu. Paylaştığın belgelere de baktım bazı jpeglere baktım ama pek bir meta data çıkarmadı.
Hangi siteden nasıl bir program,işlem uyguladığınızı bilmiyorum. Bildiğim şey jpeg,mp3 gibi dosyaların verilerini sıkıştırma algoritmalarıyla tuttuğudur. Bunun tartışılacak bir tarafıda yok zaten. Buyrun alıntılar :
alıntı -1 : https://tr.wikipedia.org/wiki/JPEG (https://tr.wikipedia.org/wiki/JPEG)
Alıntı YapDijital ortamda, JPEG dijital fotoğraf (resim) için kayıplı sıkıştırma yaygın olarak kullanılan bir yöntemdir. depolama boyutu ve görüntü kalitesi arasında seçilebilir değişim sağlayan ayarlanabilir dereceli sıkıştırmadır. JPEG genellikle görüntü kalitesinde az algılanabilir kaybı ile 10:01 sıkıştırma sağlar.
Görüntü kodlama yöntemi
JPEG, ayarlanabilir kayıplı sıkıştırma kullanır, dolayısıyla JPEG verisinden okunan görüntü ile veriyi yaratmak için kullanılan görüntü aynı değildir. Ancak, kayıplar insan görme sisteminin daha az önem verdiği detaylarda gerçekleştiği için çoğu zaman farkedilmez.
alıntı -2 : http://sitegezgini.com/bilgisayar/bilgisayar-terimleri/jpeg-nedir.html (http://sitegezgini.com/bilgisayar/bilgisayar-terimleri/jpeg-nedir.html)
Alıntı YapJpeg Nedir? sorusunun en basit cevabı, Jpeg, bir resim formatıdır. Jpeg soyadlı dosyalar, resim işleme formatlarından biridir. Jpg olarak ta bilinir.
Jpeg, resimlerde en çok kullanılan formattır. Jpeg, aynı winzip gibi bir sıkıştırma formatıdır.
Tek farkı, jpeg resim sıkıştırma formatıdır. İnternetin yaygınlaşması ile birlikte jpeg formatlı resimler de önem kazanmıştır.
Çünkü jpeg formatı, bir resmin dosya boyutunu, çok daha küçük boyutlara düşürebilmektedir. Bunu yaparken de resmin kalitesinde gözle görünür bir düşüş yapmamaktadır.
Alıntı yapılan: 91011 - 02 Ekim 2016 - 19:47:17
@gnukarabatak 700 kb civarı jpeg vardı bilgisayarda resizer siteleri var orada çevirdim jpeg den jpeg olsun dedim No change dedim 230 kb çıkardı yeni resmi ve yan yana koyup baktım gözle görülür bir fark yoktu. Paylaştığın belgelere de baktım bazı jpeglere baktım ama pek bir meta data çıkarmadı.
"resizer"in anlamı boyutlandırma oluyor. Resmin boyutu küçültülmüştür. Kullandığın resim görüntüleyici uygulamasının bir yerinde "pixel" boyutunda resim büyüklüğü belirtiliyor olabilir.
@91011; bize tam olarak ne yapacağını, jpeg salt görüntü datasını nereye işleyeceğini daha detaylı açıklarsak sana her şekilde yardım etmeye çalışırız. Nasıl bir sistem jpeg deki salt datayla iş yapıyor açıkçası merak ettim. Yaptığın şeye göre bir çözüm elbette mevcuttur.
Resim/foto işleme yazılımları ile yapabilirsiniz o dediğinizi ama amaç nedir baskı yapılacaksa kaliteyi düşürmek iyi değil ha sadece web ortamı içinse gimple açıp kaliteyi %60-%50 ye çekersiniz dediğiniz gibi bir boyutta küçülme olur, yukarıda bahsedilmiş jpg formatı zaten sıkıştırılmış bir format daha fazla sıkışırmı derseniz maks. seviyede rar tar vs ile sıkıştırıp bakın değişiklik yok denecek kadar azdır. Yandisk, google drive gibi seçenekleri değerlendirin eğer dosya boyutu büyükse sadece o kişiye izin verirsiniz o dizinde başkasıda göremez.
bin2c kullanarak uygulanabilir. Gerçi hex olarak döküm alıyor ama olsun iş görür :)
[1] https://sourceforge.net/projects/bin2c/