搜尋
首頁php教程php手册可以调整gif动画图片尺寸的很实用的php类
可以调整gif动画图片尺寸的很实用的php类Jun 13, 2016 am 10:17 AM
-demogifphp使用動畫可以圖片尺寸用的類別調整

类的使用demo:

<?<span php 
</span><span //</span><span http://www.cnblogs.com/roucheng/</span>
<span require_once</span> "roucheng.php"<span ;  
</span><span $gr</span> = <span new</span><span  gifresizer; 
</span><span $gr</span>->temp_dir = "keleyi"<span ; 
</span><span $gr</span>->resize("keleyi.gif","keleyi_resized.gif",500,500<span ); 
</span>?>

 

类的源代码,保存为roucheng.php文件:

<span   1</span> <? 
<span   2</span>     <span /*</span><span * 
</span><span   3</span> <span     * 
</span><span   4</span> <span     * Resizes Animated GIF Files
</span><span   5</span> <span     *
</span><span   6</span> <span     *   ///IMPORTANT NOTE: The script needs a temporary directory where all the frames should be extracted. 
</span><span   7</span> <span     *   Create a directory with a 777 permission level and write the path into $temp_dir variable below. 
</span><span   8</span> <span     *   
</span><span   9</span> <span     *   Default directory is "frames".
</span><span  10</span>     <span */</span>
<span  11</span>  
<span  12</span>     <span class</span><span  gifresizer {
</span><span  13</span>  
<span  14</span>         <span public</span> <span $temp_dir</span> = "frames"<span ;
</span><span  15</span>         <span private</span> <span $pointer</span> = 0<span ;
</span><span  16</span>         <span private</span> <span $index</span> = 0<span ;
</span><span  17</span>         <span private</span> <span $globaldata</span> = <span array</span><span ();
</span><span  18</span>         <span private</span> <span $imagedata</span> = <span array</span><span ();
</span><span  19</span>         <span private</span> <span $imageinfo</span> = <span array</span><span ();
</span><span  20</span>         <span private</span> <span $handle</span> = 0<span ;
</span><span  21</span>         <span private</span> <span $orgvars</span> = <span array</span><span ();
</span><span  22</span>         <span private</span> <span $encdata</span> = <span array</span><span ();
</span><span  23</span>         <span private</span> <span $parsedfiles</span> = <span array</span><span ();
</span><span  24</span>         <span private</span> <span $originalwidth</span> = 0<span ;
</span><span  25</span>         <span private</span> <span $originalheight</span> = 0<span ;
</span><span  26</span>         <span private</span> <span $wr</span>,<span $hr</span><span ;
</span><span  27</span>         <span private</span> <span $props</span> = <span array</span><span ();
</span><span  28</span>         <span private</span> <span $decoding</span> = <span false</span><span ;
</span><span  29</span>  
<span  30</span>         <span /*</span><span * 
</span><span  31</span> <span         * Public part of the class
</span><span  32</span> <span         * 
</span><span  33</span> <span         * @orgfile - Original file path
</span><span  34</span> <span         * @newfile - New filename with path
</span><span  35</span> <span         * @width   - Desired image width 
</span><span  36</span> <span         * @height  - Desired image height
</span><span  37</span>         <span */</span>
<span  38</span>         <span function</span> resize(<span $orgfile</span>,<span $newfile</span>,<span $width</span>,<span $height</span><span ){
</span><span  39</span>             <span $this</span>->decode(<span $orgfile</span><span );
</span><span  40</span>             <span $this</span>->wr=<span $width</span>/<span $this</span>-><span originalwidth;
</span><span  41</span>             <span $this</span>->hr=<span $height</span>/<span $this</span>-><span originalheight;
</span><span  42</span>             <span $this</span>-><span resizeframes();
</span><span  43</span>             <span $this</span>->encode(<span $newfile</span>,<span $width</span>,<span $height</span><span );
</span><span  44</span>             <span $this</span>-><span clearframes();
</span><span  45</span> <span         }   
</span><span  46</span>  
<span  47</span>         <span /*</span><span * 
</span><span  48</span> <span         * GIF Decoder function.
</span><span  49</span> <span         * Parses the GIF animation into single frames.
</span><span  50</span>         <span */</span>
<span  51</span>         <span private</span> <span function</span> decode(<span $filename</span><span ){
</span><span  52</span>             <span $this</span>->decoding = <span true</span><span ;            
</span><span  53</span>             <span $this</span>-><span clearvariables();
</span><span  54</span>             <span $this</span>->loadfile(<span $filename</span><span );
</span><span  55</span>             <span $this</span>-><span get_gif_header();
</span><span  56</span>             <span $this</span>->get_graphics_extension(0<span );
</span><span  57</span>             <span $this</span>-><span get_application_data();
</span><span  58</span>             <span $this</span>-><span get_application_data();
</span><span  59</span>             <span $this</span>->get_image_block(0<span );
</span><span  60</span>             <span $this</span>->get_graphics_extension(1<span );
</span><span  61</span>             <span $this</span>-><span get_comment_data();
</span><span  62</span>             <span $this</span>-><span get_application_data();
</span><span  63</span>             <span $this</span>->get_image_block(1<span );
</span><span  64</span>             <span while</span>(!<span $this</span>->checkbyte(0x3b) && !<span $this</span>-><span checkEOF()){
</span><span  65</span>                 <span $this</span>->get_comment_data(1<span );
</span><span  66</span>                 <span $this</span>->get_graphics_extension(2<span );
</span><span  67</span>                 <span $this</span>->get_image_block(2<span );
</span><span  68</span> <span             }
</span><span  69</span>             <span $this</span>->writeframes(<span time</span><span ());      
</span><span  70</span>             <span $this</span>-><span closefile();
</span><span  71</span>             <span $this</span>->decoding = <span false</span><span ;
</span><span  72</span> <span         }
</span><span  73</span>  
<span  74</span>         <span /*</span><span * 
</span><span  75</span> <span         * GIF Encoder function.
</span><span  76</span> <span         * Combines the parsed GIF frames into one single animation.
</span><span  77</span>         <span */</span>
<span  78</span>         <span private</span> <span function</span> encode(<span $new_filename</span>,<span $newwidth</span>,<span $newheight</span><span ){
</span><span  79</span>             <span $mystring</span> = ""<span ;
</span><span  80</span>             <span $this</span>->pointer = 0<span ;
</span><span  81</span>             <span $this</span>->imagedata = <span array</span><span ();
</span><span  82</span>             <span $this</span>->imageinfo = <span array</span><span ();
</span><span  83</span>             <span $this</span>->handle = 0<span ;
</span><span  84</span>             <span $this</span>->index=0<span ;
</span><span  85</span>  
<span  86</span>             <span $k</span>=0<span ;
</span><span  87</span>             <span foreach</span>(<span $this</span>->parsedfiles <span as</span> <span $imagepart</span><span ){
</span><span  88</span>                 <span $this</span>->loadfile(<span $imagepart</span><span );
</span><span  89</span>                 <span $this</span>-><span get_gif_header();
</span><span  90</span>                 <span $this</span>-><span get_application_data();
</span><span  91</span>                 <span $this</span>-><span get_comment_data();
</span><span  92</span>                 <span $this</span>->get_graphics_extension(0<span );
</span><span  93</span>                 <span $this</span>->get_image_block(0<span );
</span><span  94</span>  
<span  95</span>                 <span //</span><span get transparent color index and color</span>
<span  96</span>                 <span if</span>(<span isset</span>(<span $this</span>->encdata[<span $this</span>->index-1<span ]))
</span><span  97</span>                     <span $gxdata</span> = <span $this</span>->encdata[<span $this</span>->index-1]["graphicsextension"<span ];
</span><span  98</span>                 <span else</span>
<span  99</span>                     <span $gxdata</span> = <span null</span><span ;
</span><span 100</span>                 <span $ghdata</span> = <span $this</span>->imageinfo["gifheader"<span ];
</span><span 101</span>                 <span $trcolor</span> = ""<span ;
</span><span 102</span>                 <span $hastransparency</span>=(<span $gxdata</span>[3]&&1==1<span );
</span><span 103</span>  
<span 104</span>                 <span if</span>(<span $hastransparency</span><span ){
</span><span 105</span>                     <span $trcx</span> = <span ord</span>(<span $gxdata</span>[6<span ]);
</span><span 106</span>                     <span $trcolor</span> = <span substr</span>(<span $ghdata</span>,13+<span $trcx</span>*3,3<span );
</span><span 107</span> <span                 }
</span><span 108</span>  
<span 109</span>                 <span //</span><span global color table to image data;</span>
<span 110</span>                 <span $this</span>->transfercolortable(<span $this</span>->imageinfo["gifheader"],<span $this</span>->imagedata[<span $this</span>->index-1]["imagedata"<span ]); 
</span><span 111</span>  
<span 112</span>                 <span $imageblock</span> = &<span $this</span>->imagedata[<span $this</span>->index-1]["imagedata"<span ];
</span><span 113</span>  
<span 114</span>                 <span //</span><span if transparency exists transfer transparency index</span>
<span 115</span>                 <span if</span>(<span $hastransparency</span><span ){
</span><span 116</span>                     <span $haslocalcolortable</span> = ((<span ord</span>(<span $imageblock</span>[9])&128)==128<span );
</span><span 117</span>                     <span if</span>(<span $haslocalcolortable</span><span ){
</span><span 118</span>                         <span //</span><span local table exists. determine boundaries and look for it.</span>
<span 119</span>                         <span $tablesize</span>=(<span pow</span>(2,(<span ord</span>(<span $imageblock</span>[9])&7)+1)*3)+10<span ;
</span><span 120</span>                         <span $this</span>->orgvars[<span $this</span>->index-1]["transparent_color_index"] = 
<span 121</span>                         ((<span strrpos</span>(<span substr</span>(<span $this</span>->imagedata[<span $this</span>->index-1]["imagedata"],0,<span $tablesize</span>),<span $trcolor</span>)-10)/3<span );        
</span><span 122</span>                     }<span else</span><span {
</span><span 123</span>                         <span //</span><span local table doesnt exist, look at the global one.</span>
<span 124</span>                         <span $tablesize</span>=(<span pow</span>(2,(<span ord</span>(<span $gxdata</span>[10])&7)+1)*3)+10<span ;
</span><span 125</span>                         <span $this</span>->orgvars[<span $this</span>->index-1]["transparent_color_index"] = 
<span 126</span>                         ((<span strrpos</span>(<span substr</span>(<span $ghdata</span>,0,<span $tablesize</span>),<span $trcolor</span>)-10)/3<span );    
</span><span 127</span> <span                     }               
</span><span 128</span> <span                 }
</span><span 129</span>  
<span 130</span>                 <span //</span><span apply original delay time,transparent index and disposal values to graphics extension</span>
<span 131</span>  
<span 132</span>                 <span if</span>(!<span $this</span>->imagedata[<span $this</span>->index-1]["graphicsextension"]) <span $this</span>->imagedata[<span $this</span>->index-1]["graphicsextension"] = <span chr</span>(0x21).<span chr</span>(0xf9).<span chr</span>(0x04).<span chr</span>(0x00).<span chr</span>(0x00).<span chr</span>(0x00).<span chr</span>(0x00).<span chr</span>(0x00<span );
</span><span 133</span>  
<span 134</span>                 <span $imagedata</span> = &<span $this</span>->imagedata[<span $this</span>->index-1]["graphicsextension"<span ];
</span><span 135</span>  
<span 136</span>                 <span $imagedata</span>[3] = <span chr</span>((<span ord</span>(<span $imagedata</span>[3]) & 0xE3) | (<span $this</span>->orgvars[<span $this</span>->index-1]["disposal_method"] << 2<span ));
</span><span 137</span>                 <span $imagedata</span>[4] = <span chr</span>((<span $this</span>->orgvars[<span $this</span>->index-1]["delay_time"] % 256<span ));
</span><span 138</span>                 <span $imagedata</span>[5] = <span chr</span>(<span floor</span>(<span $this</span>->orgvars[<span $this</span>->index-1]["delay_time"] / 256<span ));
</span><span 139</span>                 <span if</span>(<span $hastransparency</span><span ){
</span><span 140</span>                     <span $imagedata</span>[6] = <span chr</span>(<span $this</span>->orgvars[<span $this</span>->index-1]["transparent_color_index"<span ]);
</span><span 141</span> <span                 }
</span><span 142</span>                 <span $imagedata</span>[3] = <span chr</span>(<span ord</span>(<span $imagedata</span>[3])|<span $hastransparency</span><span );
</span><span 143</span>  
<span 144</span>                 <span //</span><span apply calculated left and top offset </span>
<span 145</span>                 <span $imageblock</span>[1] = <span chr</span>(<span round</span>((<span $this</span>->orgvars[<span $this</span>->index-1]["offset_left"]*<span $this</span>->wr) % 256<span ));
</span><span 146</span>                 <span $imageblock</span>[2] = <span chr</span>(<span floor</span>((<span $this</span>->orgvars[<span $this</span>->index-1]["offset_left"]*<span $this</span>->wr) / 256<span ));
</span><span 147</span>                 <span $imageblock</span>[3] = <span chr</span>(<span round</span>((<span $this</span>->orgvars[<span $this</span>->index-1]["offset_top"]*<span $this</span>->hr) % 256<span ));
</span><span 148</span>                 <span $imageblock</span>[4] = <span chr</span>(<span floor</span>((<span $this</span>->orgvars[<span $this</span>->index-1]["offset_top"]*<span $this</span>->hr) / 256<span ));           
</span><span 149</span>  
<span 150</span>                 <span if</span>(<span $this</span>->index==1<span ){
</span><span 151</span>                     <span if</span>(!<span isset</span>(<span $this</span>->imageinfo["applicationdata"]) || !<span $this</span>->imageinfo["applicationdata"<span ]) 
</span><span 152</span>                         <span $this</span>->imageinfo["applicationdata"]=<span chr</span>(0x21).<span chr</span>(0xff).<span chr</span>(0x0b)."NETSCAPE2.0".<span chr</span>(0x03).<span chr</span>(0x01).<span chr</span>(0x00).<span chr</span>(0x00).<span chr</span>(0x00<span );
</span><span 153</span>                     <span if</span>(!<span isset</span>(<span $this</span>->imageinfo["commentdata"]) || !<span $this</span>->imageinfo["commentdata"<span ])
</span><span 154</span>                         <span $this</span>->imageinfo["commentdata"] = <span chr</span>(0x21).<span chr</span>(0xfe).<span chr</span>(0x10)."PHPGIFRESIZER1.0".<span chr</span>(0<span );
</span><span 155</span>                     <span $mystring</span> .= <span $this</span>->orgvars["gifheader"]. <span $this</span>->imageinfo["applicationdata"].<span $this</span>->imageinfo["commentdata"<span ];
</span><span 156</span>                     <span if</span>(<span isset</span>(<span $this</span>->orgvars["hasgx_type_0"]) && <span $this</span>->orgvars["hasgx_type_0"]) <span $mystring</span> .= <span $this</span>->globaldata["graphicsextension_0"<span ];
</span><span 157</span>                     <span if</span>(<span isset</span>(<span $this</span>->orgvars["hasgx_type_1"]) && <span $this</span>->orgvars["hasgx_type_1"]) <span $mystring</span> .= <span $this</span>->globaldata["graphicsextension"<span ];
</span><span 158</span> <span                 }
</span><span 159</span>  
<span 160</span>                 <span $mystring</span> .= <span $imagedata</span> . <span $imageblock</span><span ;
</span><span 161</span>                 <span $k</span>++<span ;
</span><span 162</span>                 <span $this</span>-><span closefile();
</span><span 163</span> <span             }
</span><span 164</span>  
<span 165</span>             <span $mystring</span> .= <span chr</span>(0x3b<span ); 
</span><span 166</span>  
<span 167</span>             <span //</span><span applying new width & height to gif header</span>
<span 168</span>             <span $mystring</span>[6] = <span chr</span>(<span $newwidth</span> % 256<span );
</span><span 169</span>             <span $mystring</span>[7] = <span chr</span>(<span floor</span>(<span $newwidth</span> / 256<span ));
</span><span 170</span>             <span $mystring</span>[8] = <span chr</span>(<span $newheight</span> % 256<span );
</span><span 171</span>             <span $mystring</span>[9] = <span chr</span>(<span floor</span>(<span $newheight</span> / 256<span ));
</span><span 172</span>             <span $mystring</span>[11]= <span $this</span>->orgvars["background_color"<span ];
</span><span 173</span>             <span //</span><span if(file_exists($new_filename)){unlink($new_filename);}</span>
<span 174</span>             <span file_put_contents</span>(<span $new_filename</span>,<span $mystring</span><span );
</span><span 175</span> <span         }
</span><span 176</span>  
<span 177</span>         <span /*</span><span * 
</span><span 178</span> <span         * Variable Reset function
</span><span 179</span> <span         * If a instance is used multiple times, it's needed. Trust me.
</span><span 180</span>         <span */</span>
<span 181</span>         <span private</span> <span function</span><span  clearvariables(){
</span><span 182</span>             <span $this</span>->pointer = 0<span ;
</span><span 183</span>             <span $this</span>->index = 0<span ;
</span><span 184</span>             <span $this</span>->imagedata = <span array</span><span ();
</span><span 185</span>             <span $this</span>->imageinfo = <span array</span><span ();            
</span><span 186</span>             <span $this</span>->handle = 0<span ;
</span><span 187</span>             <span $this</span>->parsedfiles = <span array</span><span ();
</span><span 188</span> <span         }
</span><span 189</span>  
<span 190</span>         <span /*</span><span * 
</span><span 191</span> <span         * Clear Frames function
</span><span 192</span> <span         * For deleting the frames after encoding.
</span><span 193</span>         <span */</span>
<span 194</span>         <span private</span> <span function</span><span  clearframes(){
</span><span 195</span>             <span foreach</span>(<span $this</span>->parsedfiles <span as</span> <span $temp_frame</span><span ){
</span><span 196</span>                 <span unlink</span>(<span $temp_frame</span><span );
</span><span 197</span> <span             }
</span><span 198</span> <span         }
</span><span 199</span>  
<span 200</span>         <span /*</span><span * 
</span><span 201</span> <span         * Frame Writer
</span><span 202</span> <span         * Writes the GIF frames into files.
</span><span 203</span>         <span */</span>
<span 204</span>         <span private</span> <span function</span> writeframes(<span $prepend</span><span ){
</span><span 205</span>             <span for</span>(<span $i</span>=0;<span $i</span><<span sizeof</span>(<span $this</span>->imagedata);<span $i</span>++<span ){
</span><span 206</span>                 <span file_put_contents</span>(<span $this</span>->temp_dir."/frame_".<span $prepend</span>."_".<span str_pad</span>(<span $i</span>,2,"0",STR_PAD_LEFT).".gif",<span $this</span>->imageinfo["gifheader"].<span $this</span>->imagedata[<span $i</span>]["graphicsextension"].<span $this</span>->imagedata[<span $i</span>]["imagedata"].<span chr</span>(0x3b<span ));
</span><span 207</span>                 <span $this</span>->parsedfiles[]=<span $this</span>->temp_dir."/frame_".<span $prepend</span>."_".<span str_pad</span>(<span $i</span>,2,"0",STR_PAD_LEFT).".gif"<span ;
</span><span 208</span> <span             }
</span><span 209</span> <span         }
</span><span 210</span>  
<span 211</span>         <span /*</span><span * 
</span><span 212</span> <span         * Color Palette Transfer Device
</span><span 213</span> <span         * Transferring Global Color Table (GCT) from frames into Local Color Tables in animation.
</span><span 214</span>         <span */</span>
<span 215</span>         <span private</span> <span function</span> transfercolortable(<span $src</span>,&<span $dst</span><span ){
</span><span 216</span>             <span //</span><span src is gif header,dst is image data block
</span><span 217</span> <span             //if global color table exists,transfer it</span>
<span 218</span>             <span if</span>((<span ord</span>(<span $src</span>[10])&128)==128<span ){
</span><span 219</span>                 <span //</span><span Gif Header Global Color Table Length</span>
<span 220</span>                 <span $ghctl</span> = <span pow</span>(2,<span $this</span>->readbits(<span ord</span>(<span $src</span>[10]),5,3)+1)*3<span ;
</span><span 221</span>                 <span //</span><span cut global color table from gif header</span>
<span 222</span>                 <span $ghgct</span> = <span substr</span>(<span $src</span>,13,<span $ghctl</span><span );
</span><span 223</span>                 <span //</span><span check image block color table length</span>
<span 224</span>                 <span if</span>((<span ord</span>(<span $dst</span>[9])&128)==128<span ){
</span><span 225</span>                     <span //</span><span Image data contains color table. skip.</span>
<span 226</span>                 }<span else</span><span {
</span><span 227</span>                     <span //</span><span Image data needs a color table.
</span><span 228</span> <span                     //get last color table length so we can truncate the dummy color table</span>
<span 229</span>                     <span $idctl</span> = <span pow</span>(2,<span $this</span>->readbits(<span ord</span>(<span $dst</span>[9]),5,3)+1)*3<span ;
</span><span 230</span>                     <span //</span><span set color table flag and length   </span>
<span 231</span>                     <span $dst</span>[9] = <span chr</span>(<span ord</span>(<span $dst</span>[9]) | (0x80 | (<span log</span>(<span $ghctl</span>/3,2)-1<span )));
</span><span 232</span>                     <span //</span><span inject color table</span>
<span 233</span>                     <span $dst</span> = <span substr</span>(<span $dst</span>,0,10).<span $ghgct</span>.<span substr</span>(<span $dst</span>,-1*<span strlen</span>(<span $dst</span>)+10<span );
</span><span 234</span> <span                 }
</span><span 235</span>             }<span else</span><span {
</span><span 236</span>                 <span //</span><span global color table doesn't exist. skip.</span>
<span 237</span> <span             }
</span><span 238</span> <span         }
</span><span 239</span>  
<span 240</span>         <span /*</span><span * 
</span><span 241</span> <span         * GIF Parser Functions.
</span><span 242</span> <span         * Below functions are the main structure parser components.
</span><span 243</span>         <span */</span>
<span 244</span>         <span private</span> <span function</span><span  get_gif_header(){
</span><span 245</span>             <span $this</span>->p_forward(10<span );
</span><span 246</span>             <span if</span>(<span $this</span>->readbits((<span $mybyte</span>=<span $this</span>->readbyte_int()),0,1)==1<span ){
</span><span 247</span>                 <span $this</span>->p_forward(2<span );
</span><span 248</span>                 <span $this</span>->p_forward(<span pow</span>(2,<span $this</span>->readbits(<span $mybyte</span>,5,3)+1)*3<span );
</span><span 249</span>             }<span else</span><span {
</span><span 250</span>                 <span $this</span>->p_forward(2<span );
</span><span 251</span> <span             }
</span><span 252</span>  
<span 253</span>             <span $this</span>->imageinfo["gifheader"]=<span $this</span>->datapart(0,<span $this</span>-><span pointer);
</span><span 254</span>             <span if</span>(<span $this</span>-><span decoding){
</span><span 255</span>                 <span $this</span>->orgvars["gifheader"]=<span $this</span>->imageinfo["gifheader"<span ];
</span><span 256</span>                 <span $this</span>->originalwidth = <span ord</span>(<span $this</span>->orgvars["gifheader"][7])*256+<span ord</span>(<span $this</span>->orgvars["gifheader"][6<span ]);
</span><span 257</span>                 <span $this</span>->originalheight = <span ord</span>(<span $this</span>->orgvars["gifheader"][9])*256+<span ord</span>(<span $this</span>->orgvars["gifheader"][8<span ]);
</span><span 258</span>                 <span $this</span>->orgvars["background_color"]=<span $this</span>->orgvars["gifheader"][11<span ];
</span><span 259</span> <span             }
</span><span 260</span>  
<span 261</span> <span         }
</span><span 262</span>         <span //</span><span -------------------------------------------------------</span>
<span 263</span>         <span private</span> <span function</span><span  get_application_data(){
</span><span 264</span>             <span $startdata</span> = <span $this</span>->readbyte(2<span );
</span><span 265</span>             <span if</span>(<span $startdata</span>==<span chr</span>(0x21).<span chr</span>(0xff<span )){
</span><span 266</span>                 <span $start</span> = <span $this</span>->pointer - 2<span ;
</span><span 267</span>                 <span $this</span>->p_forward(<span $this</span>-><span readbyte_int());
</span><span 268</span>                 <span $this</span>->read_data_stream(<span $this</span>-><span readbyte_int());
</span><span 269</span>                 <span $this</span>->imageinfo["applicationdata"] = <span $this</span>->datapart(<span $start</span>,<span $this</span>->pointer-<span $start</span><span );
</span><span 270</span>             }<span else</span><span {
</span><span 271</span>                 <span $this</span>->p_rewind(2<span );
</span><span 272</span> <span             }
</span><span 273</span> <span         }
</span><span 274</span>         <span //</span><span -------------------------------------------------------</span>
<span 275</span>         <span private</span> <span function</span><span  get_comment_data(){
</span><span 276</span>             <span $startdata</span> = <span $this</span>->readbyte(2<span );
</span><span 277</span>             <span if</span>(<span $startdata</span>==<span chr</span>(0x21).<span chr</span>(0xfe<span )){
</span><span 278</span>                 <span $start</span> = <span $this</span>->pointer - 2<span ;
</span><span 279</span>                 <span $this</span>->read_data_stream(<span $this</span>-><span readbyte_int());
</span><span 280</span>                 <span $this</span>->imageinfo["commentdata"] = <span $this</span>->datapart(<span $start</span>,<span $this</span>->pointer-<span $start</span><span );
</span><span 281</span>             }<span else</span><span {
</span><span 282</span>                 <span $this</span>->p_rewind(2<span );
</span><span 283</span> <span             }
</span><span 284</span> <span         }
</span><span 285</span>         <span //</span><span -------------------------------------------------------</span>
<span 286</span>         <span private</span> <span function</span> get_graphics_extension(<span $type</span><span ){
</span><span 287</span>             <span $startdata</span> = <span $this</span>->readbyte(2<span );
</span><span 288</span>             <span if</span>(<span $startdata</span>==<span chr</span>(0x21).<span chr</span>(0xf9<span )){
</span><span 289</span>                 <span $start</span> = <span $this</span>->pointer - 2<span ;
</span><span 290</span>                 <span $this</span>->p_forward(<span $this</span>-><span readbyte_int());
</span><span 291</span>                 <span $this</span>->p_forward(1<span );
</span><span 292</span>                 <span if</span>(<span $type</span>==2<span ){
</span><span 293</span>                     <span $this</span>->imagedata[<span $this</span>->index]["graphicsextension"] = <span $this</span>->datapart(<span $start</span>,<span $this</span>->pointer-<span $start</span><span );
</span><span 294</span>                 }<span else</span> <span if</span>(<span $type</span>==1<span ){
</span><span 295</span>                     <span $this</span>->orgvars["hasgx_type_1"] = 1<span ;
</span><span 296</span>                     <span $this</span>->globaldata["graphicsextension"] = <span $this</span>->datapart(<span $start</span>,<span $this</span>->pointer-<span $start</span><span );
</span><span 297</span>                 }<span else</span> <span if</span>(<span $type</span>==0 && <span $this</span>->decoding==<span false</span><span ){
</span><span 298</span>                     <span $this</span>->encdata[<span $this</span>->index]["graphicsextension"] = <span $this</span>->datapart(<span $start</span>,<span $this</span>->pointer-<span $start</span><span );
</span><span 299</span>                 }<span else</span> <span if</span>(<span $type</span>==0 && <span $this</span>->decoding==<span true</span><span ){
</span><span 300</span>                     <span $this</span>->orgvars["hasgx_type_0"] = 1<span ;
</span><span 301</span>                     <span $this</span>->globaldata["graphicsextension_0"] = <span $this</span>->datapart(<span $start</span>,<span $this</span>->pointer-<span $start</span><span );
</span><span 302</span> <span                 }
</span><span 303</span>             }<span else</span><span {
</span><span 304</span>                 <span $this</span>->p_rewind(2<span );
</span><span 305</span> <span             }
</span><span 306</span> <span         }
</span><span 307</span>         <span //</span><span -------------------------------------------------------</span>
<span 308</span>         <span private</span> <span function</span> get_image_block(<span $type</span><span ){
</span><span 309</span>             <span if</span>(<span $this</span>->checkbyte(0x2c<span )){
</span><span 310</span>                 <span $start</span> = <span $this</span>-><span pointer;
</span><span 311</span>                 <span $this</span>->p_forward(9<span );
</span><span 312</span>                 <span if</span>(<span $this</span>->readbits((<span $mybyte</span>=<span $this</span>->readbyte_int()),0,1)==1<span ){
</span><span 313</span>                     <span $this</span>->p_forward(<span pow</span>(2,<span $this</span>->readbits(<span $mybyte</span>,5,3)+1)*3<span );
</span><span 314</span> <span                 }
</span><span 315</span>                 <span $this</span>->p_forward(1<span );
</span><span 316</span>                 <span $this</span>->read_data_stream(<span $this</span>-><span readbyte_int());
</span><span 317</span>                 <span $this</span>->imagedata[<span $this</span>->index]["imagedata"] = <span $this</span>->datapart(<span $start</span>,<span $this</span>->pointer-<span $start</span><span );
</span><span 318</span>  
<span 319</span>                 <span if</span>(<span $type</span>==0<span ){
</span><span 320</span>                     <span $this</span>->orgvars["hasgx_type_0"] = 0<span ;
</span><span 321</span>                     <span if</span>(<span isset</span>(<span $this</span>->globaldata["graphicsextension_0"<span ]))
</span><span 322</span>                         <span $this</span>->imagedata[<span $this</span>->index]["graphicsextension"]=<span $this</span>->globaldata["graphicsextension_0"<span ];
</span><span 323</span>                     <span else</span>
<span 324</span>                         <span $this</span>->imagedata[<span $this</span>->index]["graphicsextension"]=<span null</span><span ;
</span><span 325</span>                     <span unset</span>(<span $this</span>->globaldata["graphicsextension_0"<span ]);
</span><span 326</span>                 }<span elseif</span>(<span $type</span>==1<span ){
</span><span 327</span>                     <span if</span>(<span isset</span>(<span $this</span>->orgvars["hasgx_type_1"]) && <span $this</span>->orgvars["hasgx_type_1"]==1<span ){
</span><span 328</span>                         <span $this</span>->orgvars["hasgx_type_1"] = 0<span ;
</span><span 329</span>                         <span $this</span>->imagedata[<span $this</span>->index]["graphicsextension"]=<span $this</span>->globaldata["graphicsextension"<span ];
</span><span 330</span>                         <span unset</span>(<span $this</span>->globaldata["graphicsextension"<span ]);
</span><span 331</span>                     }<span else</span><span {
</span><span 332</span>                         <span $this</span>->orgvars["hasgx_type_0"] = 0<span ;
</span><span 333</span>                         <span $this</span>->imagedata[<span $this</span>->index]["graphicsextension"]=<span $this</span>->globaldata["graphicsextension_0"<span ];
</span><span 334</span>                         <span unset</span>(<span $this</span>->globaldata["graphicsextension_0"<span ]);
</span><span 335</span> <span                     }
</span><span 336</span> <span                 }
</span><span 337</span>  
<span 338</span>                 <span $this</span>-><span parse_image_data();
</span><span 339</span>                 <span $this</span>->index++<span ;
</span><span 340</span>  
<span 341</span> <span             }
</span><span 342</span> <span         }
</span><span 343</span>         <span //</span><span -------------------------------------------------------</span>
<span 344</span>         <span private</span> <span function</span><span  parse_image_data(){
</span><span 345</span>             <span $this</span>->imagedata[<span $this</span>->index]["disposal_method"] = <span $this</span>->get_imagedata_bit("ext",3,3,3<span );
</span><span 346</span>             <span $this</span>->imagedata[<span $this</span>->index]["user_input_flag"] = <span $this</span>->get_imagedata_bit("ext",3,6,1<span );
</span><span 347</span>             <span $this</span>->imagedata[<span $this</span>->index]["transparent_color_flag"] = <span $this</span>->get_imagedata_bit("ext",3,7,1<span );
</span><span 348</span>             <span $this</span>->imagedata[<span $this</span>->index]["delay_time"] = <span $this</span>->dualbyteval(<span $this</span>->get_imagedata_byte("ext",4,2<span ));
</span><span 349</span>             <span $this</span>->imagedata[<span $this</span>->index]["transparent_color_index"] = <span ord</span>(<span $this</span>->get_imagedata_byte("ext",6,1<span ));
</span><span 350</span>             <span $this</span>->imagedata[<span $this</span>->index]["offset_left"] = <span $this</span>->dualbyteval(<span $this</span>->get_imagedata_byte("dat",1,2<span ));
</span><span 351</span>             <span $this</span>->imagedata[<span $this</span>->index]["offset_top"] = <span $this</span>->dualbyteval(<span $this</span>->get_imagedata_byte("dat",3,2<span ));
</span><span 352</span>             <span $this</span>->imagedata[<span $this</span>->index]["width"] = <span $this</span>->dualbyteval(<span $this</span>->get_imagedata_byte("dat",5,2<span ));
</span><span 353</span>             <span $this</span>->imagedata[<span $this</span>->index]["height"] = <span $this</span>->dualbyteval(<span $this</span>->get_imagedata_byte("dat",7,2<span ));
</span><span 354</span>             <span $this</span>->imagedata[<span $this</span>->index]["local_color_table_flag"] = <span $this</span>->get_imagedata_bit("dat",9,0,1<span );
</span><span 355</span>             <span $this</span>->imagedata[<span $this</span>->index]["interlace_flag"] = <span $this</span>->get_imagedata_bit("dat",9,1,1<span );
</span><span 356</span>             <span $this</span>->imagedata[<span $this</span>->index]["sort_flag"] = <span $this</span>->get_imagedata_bit("dat",9,2,1<span );
</span><span 357</span>             <span $this</span>->imagedata[<span $this</span>->index]["color_table_size"] = <span pow</span>(2,<span $this</span>->get_imagedata_bit("dat",9,5,3)+1)*3<span ;
</span><span 358</span>             <span $this</span>->imagedata[<span $this</span>->index]["color_table"] = <span substr</span>(<span $this</span>->imagedata[<span $this</span>->index]["imagedata"],10,<span $this</span>->imagedata[<span $this</span>->index]["color_table_size"<span ]);
</span><span 359</span>             <span $this</span>->imagedata[<span $this</span>->index]["lzw_code_size"] = <span ord</span>(<span $this</span>->get_imagedata_byte("dat",10,1<span ));
</span><span 360</span>             <span if</span>(<span $this</span>-><span decoding){
</span><span 361</span>                 <span $this</span>->orgvars[<span $this</span>->index]["transparent_color_flag"] = <span $this</span>->imagedata[<span $this</span>->index]["transparent_color_flag"<span ];
</span><span 362</span>                 <span $this</span>->orgvars[<span $this</span>->index]["transparent_color_index"] = <span $this</span>->imagedata[<span $this</span>->index]["transparent_color_index"<span ];
</span><span 363</span>                 <span $this</span>->orgvars[<span $this</span>->index]["delay_time"] = <span $this</span>->imagedata[<span $this</span>->index]["delay_time"<span ];
</span><span 364</span>                 <span $this</span>->orgvars[<span $this</span>->index]["disposal_method"] = <span $this</span>->imagedata[<span $this</span>->index]["disposal_method"<span ];
</span><span 365</span>                 <span $this</span>->orgvars[<span $this</span>->index]["offset_left"] = <span $this</span>->imagedata[<span $this</span>->index]["offset_left"<span ];
</span><span 366</span>                 <span $this</span>->orgvars[<span $this</span>->index]["offset_top"] = <span $this</span>->imagedata[<span $this</span>->index]["offset_top"<span ];
</span><span 367</span> <span             }
</span><span 368</span> <span         }
</span><span 369</span>         <span //</span><span -------------------------------------------------------</span>
<span 370</span>         <span private</span> <span function</span> get_imagedata_byte(<span $type</span>,<span $start</span>,<span $length</span><span ){
</span><span 371</span>             <span if</span>(<span $type</span>=="ext"<span )
</span><span 372</span>                 <span return</span> <span substr</span>(<span $this</span>->imagedata[<span $this</span>->index]["graphicsextension"],<span $start</span>,<span $length</span><span );
</span><span 373</span>             <span elseif</span>(<span $type</span>=="dat"<span )
</span><span 374</span>                 <span return</span> <span substr</span>(<span $this</span>->imagedata[<span $this</span>->index]["imagedata"],<span $start</span>,<span $length</span><span );
</span><span 375</span> <span         }
</span><span 376</span>         <span //</span><span -------------------------------------------------------</span>
<span 377</span>         <span private</span> <span function</span> get_imagedata_bit(<span $type</span>,<span $byteindex</span>,<span $bitstart</span>,<span $bitlength</span><span ){
</span><span 378</span>             <span if</span>(<span $type</span>=="ext"<span )
</span><span 379</span>                 <span return</span> <span $this</span>->readbits(<span ord</span>(<span substr</span>(<span $this</span>->imagedata[<span $this</span>->index]["graphicsextension"],<span $byteindex</span>,1)),<span $bitstart</span>,<span $bitlength</span><span );
</span><span 380</span>             <span elseif</span>(<span $type</span>=="dat"<span )
</span><span 381</span>                 <span return</span> <span $this</span>->readbits(<span ord</span>(<span substr</span>(<span $this</span>->imagedata[<span $this</span>->index]["imagedata"],<span $byteindex</span>,1)),<span $bitstart</span>,<span $bitlength</span><span );
</span><span 382</span> <span         }
</span><span 383</span>         <span //</span><span -------------------------------------------------------</span>
<span 384</span>         <span private</span> <span function</span> dualbyteval(<span $s</span><span ){
</span><span 385</span>             <span $i</span> = <span ord</span>(<span $s</span>[1])*256 + <span ord</span>(<span $s</span>[0<span ]);
</span><span 386</span>             <span return</span> <span $i</span><span ;
</span><span 387</span> <span         }
</span><span 388</span>         <span //</span><span ------------   Helper Functions ---------------------</span>
<span 389</span>         <span private</span> <span function</span> read_data_stream(<span $first_length</span><span ){
</span><span 390</span>             <span $this</span>->p_forward(<span $first_length</span><span );
</span><span 391</span>             <span $length</span>=<span $this</span>-><span readbyte_int();
</span><span 392</span>             <span if</span>(<span $length</span>!=0<span ) {
</span><span 393</span>                 <span while</span>(<span $length</span>!=0<span ){
</span><span 394</span>                     <span $this</span>->p_forward(<span $length</span><span );
</span><span 395</span>                     <span $length</span>=<span $this</span>-><span readbyte_int();
</span><span 396</span> <span                 }
</span><span 397</span> <span             }
</span><span 398</span>             <span return</span> <span true</span><span ;
</span><span 399</span> <span         }
</span><span 400</span>         <span //</span><span -------------------------------------------------------</span>
<span 401</span>         <span private</span> <span function</span> loadfile(<span $filename</span><span ){
</span><span 402</span>             <span $this</span>->handle = <span fopen</span>(<span $filename</span>,"rb"<span );
</span><span 403</span>             <span $this</span>->pointer = 0<span ;
</span><span 404</span> <span         }
</span><span 405</span>         <span //</span><span -------------------------------------------------------</span>
<span 406</span>         <span private</span> <span function</span><span  closefile(){
</span><span 407</span>             <span fclose</span>(<span $this</span>-><span handle);
</span><span 408</span>             <span $this</span>->handle=0<span ;
</span><span 409</span> <span         }
</span><span 410</span>         <span //</span><span -------------------------------------------------------</span>
<span 411</span>         <span private</span> <span function</span> readbyte(<span $byte_count</span><span ){
</span><span 412</span>             <span $data</span> = <span fread</span>(<span $this</span>->handle,<span $byte_count</span><span );
</span><span 413</span>             <span $this</span>->pointer += <span $byte_count</span><span ;
</span><span 414</span>             <span return</span> <span $data</span><span ;
</span><span 415</span> <span         }
</span><span 416</span>         <span //</span><span -------------------------------------------------------</span>
<span 417</span>         <span private</span> <span function</span><span  readbyte_int(){
</span><span 418</span>             <span $data</span> = <span fread</span>(<span $this</span>->handle,1<span );
</span><span 419</span>             <span $this</span>->pointer++<span ;
</span><span 420</span>             <span return</span> <span ord</span>(<span $data</span><span );
</span><span 421</span> <span         }
</span><span 422</span>         <span //</span><span -------------------------------------------------------</span>
<span 423</span>         <span private</span> <span function</span> readbits(<span $byte</span>,<span $start</span>,<span $length</span><span ){
</span><span 424</span>             <span $bin</span> = <span str_pad</span>(<span decbin</span>(<span $byte</span>),8,"0",<span STR_PAD_LEFT);
</span><span 425</span>             <span $data</span> = <span substr</span>(<span $bin</span>,<span $start</span>,<span $length</span><span );
</span><span 426</span>             <span return</span> <span bindec</span>(<span $data</span><span );
</span><span 427</span> <span         }
</span><span 428</span>         <span //</span><span -------------------------------------------------------</span>
<span 429</span>         <span private</span> <span function</span> p_rewind(<span $length</span><span ){
</span><span 430</span>             <span $this</span>->pointer-=<span $length</span><span ;
</span><span 431</span>             <span fseek</span>(<span $this</span>->handle,<span $this</span>-><span pointer);
</span><span 432</span> <span         }
</span><span 433</span>         <span //</span><span -------------------------------------------------------</span>
<span 434</span>         <span private</span> <span function</span> p_forward(<span $length</span><span ){
</span><span 435</span>             <span $this</span>->pointer+=<span $length</span><span ;
</span><span 436</span>             <span fseek</span>(<span $this</span>->handle,<span $this</span>-><span pointer);
</span><span 437</span> <span         }
</span><span 438</span>         <span //</span><span -------------------------------------------------------</span>
<span 439</span>         <span private</span> <span function</span> datapart(<span $start</span>,<span $length</span><span ){
</span><span 440</span>             <span fseek</span>(<span $this</span>->handle,<span $start</span><span );
</span><span 441</span>             <span $data</span> = <span fread</span>(<span $this</span>->handle,<span $length</span><span );
</span><span 442</span>             <span fseek</span>(<span $this</span>->handle,<span $this</span>-><span pointer);
</span><span 443</span>             <span return</span> <span $data</span><span ;
</span><span 444</span> <span         }
</span><span 445</span>         <span //</span><span -------------------------------------------------------</span>
<span 446</span>         <span private</span> <span function</span> checkbyte(<span $byte</span><span ){
</span><span 447</span>             <span if</span>(<span fgetc</span>(<span $this</span>->handle)==<span chr</span>(<span $byte</span><span )){
</span><span 448</span>                 <span fseek</span>(<span $this</span>->handle,<span $this</span>-><span pointer);
</span><span 449</span>                 <span return</span> <span true</span><span ;
</span><span 450</span>             }<span else</span><span {
</span><span 451</span>                 <span fseek</span>(<span $this</span>->handle,<span $this</span>-><span pointer);
</span><span 452</span>                 <span return</span> <span false</span><span ;
</span><span 453</span> <span             }
</span><span 454</span> <span         }   
</span><span 455</span>         <span //</span><span -------------------------------------------------------</span>
<span 456</span>         <span private</span> <span function</span><span  checkEOF(){
</span><span 457</span>             <span if</span>(<span fgetc</span>(<span $this</span>->handle)===<span false</span><span ){
</span><span 458</span>                 <span return</span> <span true</span><span ;
</span><span 459</span>             }<span else</span><span {
</span><span 460</span>                 <span fseek</span>(<span $this</span>->handle,<span $this</span>-><span pointer);
</span><span 461</span>                 <span return</span> <span false</span><span ;
</span><span 462</span> <span             }
</span><span 463</span> <span         }   
</span><span 464</span>         <span //</span><span -------------------------------------------------------</span>
<span 465</span>         <span /*</span><span * 
</span><span 466</span> <span         * Debug Functions.  keleyi.com
</span><span 467</span> <span         * Parses the GIF animation into single frames.
</span><span 468</span>         <span */</span>
<span 469</span>         <span private</span> <span function</span> debug(<span $string</span><span ){
</span><span 470</span>             <span echo</span> "<pre class="brush:php;toolbar:false">"<span ;
</span><span 471</span>             <span for</span>(<span $i</span>=0;<span $i</span><<span strlen</span>(<span $string</span>);<span $i</span>++<span ){
</span><span 472</span>                 <span echo</span> <span str_pad</span>(<span dechex</span>(<span ord</span>(<span $string</span>[<span $i</span>])),2,"0",STR_PAD_LEFT). " "<span ;
</span><span 473</span> <span             }
</span><span 474</span>             <span echo</span> "
" debuglen(, "
"<span><span>             <span for>(<span>=0;<span>;<span>++<span><span>                 <span echo> <span str_pad>(<span dechex>(<span ord>(<span>[<span>])),2,"0",STR_PAD_LEFT). " "<span><span> <span><span>             <span echo> "</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span>
" debugstream( ->debug(->datapart(->pointer, =0 (->parsedfiles = imagecreatefromgif( = ->imagedata[]["width" = ->imagedata[]["height" = ( * -> = ( * -> = imagecreatetruecolor(, = imagecolortransparent( imagealphablending(, imagesavealpha(, imagepalettecopy(, imagefill(,0,0,imagecolortransparent( imagecolortransparent(,imagecolortransparent( imagecopyresized(,,0,0,0,0,,,, imagegif(, imagedestroy( imagedestroy( ++ ?>

 

陳述
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
win11鼠标dpi怎么调win11鼠标dpi怎么调Dec 29, 2023 pm 04:34 PM

对于游戏玩家来说,鼠标dpi是非常重要的,很影响操作手感,那么win11怎么调鼠标dpi呢,其实根据我们使用的鼠标型号可能调整方法会不太一样。win11鼠标dpi怎么调方法一:(通用)1、首先,打开“设置”应用,点击进入左边的“蓝牙和其他设备”。2、再点击进入右边的“鼠标”设置选项。3、最后,这个页面点击修改鼠标速度dpi即可。方法二:(专业设备)1、专业的鼠标上一般会自带dpi调节按钮。2、如果没有,下载一个专业驱动软件就可以在其中调整dpi了。

如何解决Win10缺少1920x1080分辨率问题如何解决Win10缺少1920x1080分辨率问题Jan 06, 2024 am 09:08 AM

win10系统是一款非常优秀的系统,强大的稳定性是系统最厉害的地方,今天小编为大家带来的就是win10分辨率没有1920x1080的解决办法!有需要的话就一起来看看吧。  win10系统分辨率没有1920x1080解决办法:注:win10分辨率没有1920x1080的问题都是因为显卡驱动导致的!所以我要只需要更新一下显卡驱动即可。(具体操作步骤如下)1、右键点击计算机选择管理打开。2、在打开的管理界面中从左侧找到设备管理器。3、继续在打开的设备管理器界面中从左侧找到显示适配器打开。4、最后右键选

如何在Windows 11上调整屏幕亮度如何在Windows 11上调整屏幕亮度Jan 02, 2024 pm 03:17 PM

在win11中,如果屏幕亮度太暗,会看不清楚画面,太亮的话会晃眼睛,那么win11怎么调整屏幕亮度呢,其实在显示设置里就可以调节了,非常方便。win11怎么调整屏幕亮度:1、首先打开下面的“开始菜单”2、接着点击上方的“设置”3、打开后,进入右边的“显示”设置。4、打开后,滑动亮度滑块就可以调整屏幕亮度了。

Edge浏览器如何更改网页缩放比例Edge浏览器如何更改网页缩放比例Jan 29, 2024 pm 09:06 PM

如何调整Edge浏览器网页显示比例?我们在使用edge浏览器的时候,想要调整网页显示比列应该如何调整,下面介绍!我们使用edge浏览器浏览网页的时候,有些网页的文字比较小,这种情况我们可以调整下网页比例把整体页面放大,这样我们就可以清楚的看清文字,那么具体的操作是什么呢,小编下面介绍下!不会的话一起往下看吧!调整Edge浏览器网页显示比例技巧1、使用Edge浏览器打开需要放大的网页后,在浏览器右上角点击由三个点组成的“设置及其他”图标。2、之后在下方弹出的Edge浏览器菜单窗口中找到“缩放”这一

如何解决不恰当的分辨率问题如何解决不恰当的分辨率问题Jan 08, 2024 pm 03:25 PM

我们重装系统后有可能没有自己想要的分辨率,有的分辨率看起来就很不舒服,究其原因有可能是显卡驱动没装上或者驱动版本过旧,安装一个驱动人生打开后会提示你需要安装的驱动,等全部安装完后重启电脑,一般都能自动匹配适合你显示器的分辨率,如果还是不行我们就需要自定义一个,具体的一起来看看吧。分辨率没有合适的解决方法1、安装驱动人生,根据提示更新完所有的驱动,然后重启电脑;2、右击电脑桌面,选择NVIDIA控制面板打开,如果没有的就在电脑左下角开始菜单的程序里找;3、选择<更改分辨率>→<自定义>

如何使用 iOS 17 在 iPhone 上编辑照片如何使用 iOS 17 在 iPhone 上编辑照片Nov 30, 2023 pm 11:39 PM

移动摄影从根本上改变了我们捕捉和分享生活瞬间的方法。智能手机的出现,尤其是iPhone,在这一转变中发挥了关键作用。iPhone以其先进的相机技术和用户友好的编辑功能而闻名,已成为业余和经验丰富的摄影师的首选。iOS17的推出标志着这一旅程中的一个重要里程碑。Apple的最新更新带来了一套增强的照片编辑功能,为用户提供了一个更强大的工具包,将他们的日常快照变成视觉上引人入胜且艺术丰富的图像。这种技术的发展不仅简化了摄影过程,还为创意表达开辟了新的途径,使用户能够毫不费力地为他们的照片注入专业气息

可以删除downloads文件夹吗?可以删除downloads文件夹吗?Feb 19, 2024 pm 03:38 PM

downloads可以删除吗近年来,随着数字化时代的来临,我们生活中出现了越来越多的数字化产品和服务。而随之而来的,就是我们对于数字化内容的需求与日俱增。在日常生活和工作中,我们经常需要下载各种各样的文件,如文档、图片、音频和视频等等。而这些下载的文件,通常都被保存在一个名为“downloads”(下载)的文件夹之中。然而,随着时间的推移,我们经常会发现,“

如何调整Win11鼠标DPI?如何调整Win11鼠标DPI?Jun 30, 2023 pm 12:53 PM

Win11怎样调整鼠标dpi?鼠标是使用电脑的必备的设备,而对于一些喜欢打游戏的玩家来说,鼠标的DPI值越高就代表着灵敏度越高,不过一些使用Win11系统的小伙伴想要修改dpi数值却不知道如何操作,下面就和小编一起来看看Win11系统应该如何去修改鼠标dpi数值吧。Win11调整鼠标dpi的详细步骤1、首先说一个通用的方法,打开系统设置。2、打开后,进入左边的蓝牙和其他设备。3、然后进入右边的鼠标设置。4、最后在其中就可以修改鼠标速度dpi了。以上就是【Win11怎样调整鼠标dpi-Win11调

See all articles

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

AI Hentai Generator

AI Hentai Generator

免費產生 AI 無盡。

熱門文章

R.E.P.O.能量晶體解釋及其做什麼(黃色晶體)
2 週前By尊渡假赌尊渡假赌尊渡假赌
倉庫:如何復興隊友
4 週前By尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island冒險:如何獲得巨型種子
4 週前By尊渡假赌尊渡假赌尊渡假赌

熱工具

MantisBT

MantisBT

Mantis是一個易於部署的基於Web的缺陷追蹤工具,用於幫助產品缺陷追蹤。它需要PHP、MySQL和一個Web伺服器。請查看我們的演示和託管服務。

PhpStorm Mac 版本

PhpStorm Mac 版本

最新(2018.2.1 )專業的PHP整合開發工具

VSCode Windows 64位元 下載

VSCode Windows 64位元 下載

微軟推出的免費、功能強大的一款IDE編輯器

記事本++7.3.1

記事本++7.3.1

好用且免費的程式碼編輯器

Atom編輯器mac版下載

Atom編輯器mac版下載

最受歡迎的的開源編輯器