$imagick = new Imagick();
$imagick->setResolution(100,100);
$imagick->readimage("image.svg[0]"); //or "image.pdf[0]"
/* Apply Best Resolution */
$geo=$imagick->getImageGeometry();
$geo_height = intval($geo['height']);
$geo_width = intval($geo['width']);
if ($geo_width > 800 || $geo_height > 800) {
//do not do anything if one of them is larger than 800px
}
else {
if ($geo_width > $geo_height) {
$r = round(800 / $geo_width) * 150;
}
else {
$r = round(800 / $geo_height) * 150;
}
//readimage with new resolution
$imagick->setResolution($r,$r);
$imagick->readimage("image.svg[0]");
}
/* Apply Best Resolution End */
http://twitter.com/share?text=TITLE&url=URL
http://www.facebook.com/sharer.php?u=URL
http://pinterest.com/pin/create/button/?url=URL&description=TITLE
https://www.linkedin.com/shareArticle?mini=true&url=URL&title=TITLE
Issuing network
|
IIN ranges
|
Active
|
Length
|
Validation
|
---|---|---|---|---|
American Express | 34, 37[5] | Yes | 15[6] | Luhn algorithm |
Bankcard[7] | 5610, 560221–560225 | No | 16 | |
China T-Union | 31[8][9] | Yes | 19 | |
China UnionPay | 62[10], 81 | Yes | 16–19[11] | |
Diners Club enRoute | 2014, 2149 | No | 15 | no validation |
Diners Club International[12] | 36 | Yes | 14–19[11] | Luhn algorithm |
300–305, 3095, 38–39 | Yes | 16–19[11] | ||
Diners Club United States & Canada[13] | 54, 55 (MasterCard co-branded) | Yes | 16 | |
Discover Card | 6011, 622126 - 622925, 624000 - 626999, 628200 - 628899,[14] 64, 65 | Yes | 16–19[11] | |
RuPay | 60, 6521, 6522 | Yes | 16 | |
InterPayment | 636 | Yes | 16–19 | |
InstaPayment | 637-639 | Yes | 16 | |
JCB | 3528–3589 | Yes | 16–19[11] | |
Laser | 6304, 6706, 6771, 6709 | No | 16–19 | |
Maestro UK | 6759, 676770, 676774[15] | Yes | 12–19 | |
Maestro | 50, 56–69[15] | Yes | 12–19 | |
Dankort | 5019 | Yes | 16 | |
4571 (Visa co-branded)[16] | Yes | 16 | ||
MIR | 2200–2204 | Yes | 16 | |
NPS Pridnestrovie | 6054740-6054744 | Yes | 16 | |
Mastercard | 2221-2720[17] | Yes 2017[18] | 16 | |
51–55 | Yes | 16 | ||
Solo | 6334, 6767 | No | 16, 18, 19 | |
Switch | 4903, 4905, 4911, 4936, 564182, 633110, 6333, 6759 | No | 16, 18, 19 | |
Troy | 979200–979289 | Yes | 16 | |
Visa | 4 (including related/partner brands: Dankort, Electron, etc.) | Yes | 16 | |
UATP | 1 | Yes | 15 | |
Verve | 506099–506198, 650002–650027 | Yes | 16, 19 | |
LankaPay | 357111 | Yes | 16 |
Test Card Numbers
|
Types
|
5890040000000016
|
Master Card (Debit)
|
5526080000000006
|
Master Card (Credit)
|
4766620000000001
|
Visa (Debit)
|
4603450000000000
|
Visa (Credit)
|
4987490000000002
|
Visa (Debit)
|
5311570000000005
|
Master Card (Credit)
|
9792020000000001
|
Troy (Debit)
|
9792030000000000
|
Troy (Credit)
|
5170410000000004
|
Master Card (Debit)
|
5400360000000003
|
Master Card (Credit)
|
374427000000003
|
American Express
|
4475050000000003
|
Visa (Debit)
|
5528790000000008
|
Master Card (Credit)
|
4059030000000009
|
Visa (Debit)
|
5504720000000003
|
Master Card (Credit)
|
5892830000000000
|
Master Card (Debit)
|
4543590000000006
|
Visa (Credit)
|
4910050000000006
|
Visa (Debit)
|
4157920000000002
|
Visa (Credit)
|
5168880000000002
|
Master Card (Debit)
|
5451030000000000
|
Master Card (Credit)
|
<input type="text" v-model="name" @input="name=name.toUpperCase()">
<input type="text" v-model="name" onkeyup="this.value=this.value.toUpperCase();">
<input type="text" v-model="name" @input="name=name.turkishToUpper()">
<script>
/*TR UpperCase()*/
String.prototype.turkishToUpper = function(){
var string = this;
var letters = { "i": "İ", "ş": "Ş", "ğ": "Ğ", "ü": "Ü", "ö": "Ö", "ç": "Ç", "ı": "I" };
string = string.replace(/(([iışğüçö]))/g, function(letter){ return letters[letter]; })
return string.toUpperCase();
}
/*TR UpperCase*/
<script>
if( oldScale !== scale && typeof event == 'undefined' ) {
dispatchEvent( 'resize', {
'oldScale': oldScale,
'scale': scale,
'size': size
} );
}